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

Commit

Permalink
Improve documentation of thread_setGCSignals.
Browse files Browse the repository at this point in the history
Fix some typos, and ensure that the documentation is available when
generating docs on any system, while also clarifying it is Posix-only.
  • Loading branch information
lcapaldo committed Sep 18, 2014
1 parent 95cedb9 commit 0665322
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions src/core/thread.d
Original file line number Diff line number Diff line change
Expand Up @@ -1725,16 +1725,23 @@ unittest
// GC Support Routines
///////////////////////////////////////////////////////////////////////////////

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

/**
* Instruct the thread module, when initialized,, to use a different set of
* signals besides SIGUSR1 and SIGUSr2 for suspension and resumption of threads.
* 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
{
Expand Down

0 comments on commit 0665322

Please sign in to comment.