Skip to content

Commit

Permalink
Tracked down why unlock_nothrow couldn't be called with dip1000
Browse files Browse the repository at this point in the history
  • Loading branch information
atilaneves committed May 6, 2018
1 parent 331622a commit 76bb1dd
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion stuff.d
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,20 @@

import std.concurrency: Tid;

class MutexImpl {

void lock_nothrow() shared scope {

}

void unlock_nothrow() shared scope {

}
}

struct Mutex(T) {

import core.sync.mutex: MutexImpl = Mutex;
//import core.sync.mutex: MutexImpl = Mutex;

private shared T _payload;
private shared MutexImpl _mutex;
Expand Down

0 comments on commit 76bb1dd

Please sign in to comment.