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

Commit

Permalink
Fix identation
Browse files Browse the repository at this point in the history
  • Loading branch information
lcapaldo committed Jul 13, 2014
1 parent a29efb7 commit 95cedb9
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions src/core/thread.d
Original file line number Diff line number Diff line change
Expand Up @@ -1727,32 +1727,32 @@ unittest

version( Posix )
{
__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.
* This function should be called at most once, prior to thread_init().
*/
extern (C) void thread_setGCSignals(int suspendSignalNo, int resumeSignalNo)
in
{
assert(suspendSignalNumber == 0);
assert(resumeSignalNumber == 0);
assert(suspendSignalNo != 0);
assert(resumeSignalNo != 0);
}
out
{
assert(suspendSignalNumber != 0);
assert(resumeSignalNumber != 0);
}
body
{
suspendSignalNumber = suspendSignalNo;
resumeSignalNumber = resumeSignalNo;
}
__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.
* This function should be called at most once, prior to thread_init().
*/
extern (C) void thread_setGCSignals(int suspendSignalNo, int resumeSignalNo)
in
{
assert(suspendSignalNumber == 0);
assert(resumeSignalNumber == 0);
assert(suspendSignalNo != 0);
assert(resumeSignalNo != 0);
}
out
{
assert(suspendSignalNumber != 0);
assert(resumeSignalNumber != 0);
}
body
{
suspendSignalNumber = suspendSignalNo;
resumeSignalNumber = resumeSignalNo;
}
}

/**
Expand All @@ -1776,13 +1776,13 @@ extern (C) void thread_init()
else version( Posix )
{
if( suspendSignalNumber == 0 )
{
suspendSignalNumber = SIGUSR1;
{
suspendSignalNumber = SIGUSR1;
}

if( resumeSignalNumber == 0 )
{
resumeSignalNumber = SIGUSR2;
resumeSignalNumber = SIGUSR2;
}

int status;
Expand Down

0 comments on commit 95cedb9

Please sign in to comment.