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

Commit

Permalink
Mark osthread.{resume,suspend} as @nogc
Browse files Browse the repository at this point in the history
  • Loading branch information
Geod24 authored and dlang-bot committed Sep 21, 2020
1 parent 5aaeb51 commit 17fb843
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/core/thread/osthread.d
Original file line number Diff line number Diff line change
Expand Up @@ -1546,7 +1546,7 @@ package extern(D) void* getStackBottom() nothrow @nogc
* Returns:
* Whether the thread is now suspended (true) or terminated (false).
*/
private extern (D) bool suspend( Thread t ) nothrow
private extern (D) bool suspend( Thread t ) nothrow @nogc
{
Duration waittime = dur!"usecs"(10);
Lagain:
Expand Down Expand Up @@ -1847,7 +1847,7 @@ extern (C) void thread_suspendAll() nothrow
* Throws:
* ThreadError if the resume fails for a running thread.
*/
private extern (D) void resume(ThreadBase _t) nothrow
private extern (D) void resume(ThreadBase _t) nothrow @nogc
{
Thread t = _t.toThread;

Expand Down
2 changes: 1 addition & 1 deletion src/core/thread/threadbase.d
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ package __gshared bool multiThreadedFlag = false;
// Used for suspendAll/resumeAll below.
package __gshared uint suspendDepth = 0;

private alias resume = externDFunc!("core.thread.osthread.resume", void function(ThreadBase) nothrow);
private alias resume = externDFunc!("core.thread.osthread.resume", void function(ThreadBase) nothrow @nogc);

/**
* Resume all threads but the calling thread for "stop the world" garbage
Expand Down

0 comments on commit 17fb843

Please sign in to comment.