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

Commit

Permalink
docs won't build because of missing variables in CoreDDoc mode
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinNowak committed Sep 28, 2014
1 parent ec670e5 commit 2cabbed
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/core/thread.d
Original file line number Diff line number Diff line change
Expand Up @@ -1815,23 +1815,20 @@ 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)
{
}
}
else version( Posix )
{
__gshared int suspendSignalNumber;
__gshared int resumeSignalNumber;

extern (C) void thread_setGCSignals(int suspendSignalNo, int resumeSignalNo)
in
in
{
assert(suspendSignalNumber == 0);
assert(resumeSignalNumber == 0);
Expand All @@ -1850,6 +1847,12 @@ else version( Posix )
}
}

version( Posix )
{
__gshared int suspendSignalNumber;
__gshared int resumeSignalNumber;
}

/**
* Initializes the thread module. This function must be called by the
* garbage collector on startup and before any other thread routines
Expand All @@ -1873,7 +1876,7 @@ extern (C) void thread_init()
if( suspendSignalNumber == 0 )
{
suspendSignalNumber = SIGUSR1;
}
}

if( resumeSignalNumber == 0 )
{
Expand Down

0 comments on commit 2cabbed

Please sign in to comment.