Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
require nothrow for callWithStackShell callback
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinNowak committed Sep 26, 2014
1 parent cb78abd commit ffc39c9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/core/thread.d
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ else version( Posix )
}
body
{
void op(void* sp)
void op(void* sp) nothrow
{
// NOTE: Since registers are being pushed and popped from the
// stack, any other stack data used by this function should
Expand Down Expand Up @@ -1815,12 +1815,12 @@ unittest

version( CoreDdoc )
{
/**
* Instruct the thread module, when initialized, to use a different set of
/**
* Instruct the thread module, when initialized, to use a different set of
* signals besides SIGUSR1 and SIGUSR2 for suspension and resumption of threads.
* This function should be called at most once, prior to thread_init().
* This function is Posix-only.
*/
*/
extern (C) void thread_setGCSignals(int suspendSignalNo, int resumeSignalNo)
{
}
Expand All @@ -1831,7 +1831,7 @@ else version( Posix )
__gshared int resumeSignalNumber;

extern (C) void thread_setGCSignals(int suspendSignalNo, int resumeSignalNo)
in
in
{
assert(suspendSignalNumber == 0);
assert(resumeSignalNumber == 0);
Expand Down Expand Up @@ -1873,7 +1873,7 @@ extern (C) void thread_init()
if( suspendSignalNumber == 0 )
{
suspendSignalNumber = SIGUSR1;
}
}

if( resumeSignalNumber == 0 )
{
Expand Down Expand Up @@ -2222,12 +2222,12 @@ version (PPC64) version = ExternStackShell;

version (ExternStackShell)
{
extern(D) public void callWithStackShell(scope void delegate(void* sp) fn) nothrow;
extern(D) public void callWithStackShell(scope void delegate(void* sp) nothrow fn) nothrow;
}
else
{
// Calls the given delegate, passing the current thread's stack pointer to it.
private void callWithStackShell(scope void delegate(void* sp) fn) nothrow
private void callWithStackShell(scope void delegate(void* sp) nothrow fn) nothrow
in
{
assert(fn);
Expand Down

0 comments on commit ffc39c9

Please sign in to comment.