We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bb92cf commit 65ec003Copy full SHA for 65ec003
source/numem/sync/semaphore.d
@@ -141,7 +141,7 @@ public:
141
142
while(true) {
143
144
- if (!sem_timedwait(handle, &timeout)) {
+ if (!sem_timedwait(&handle, &timeout)) {
145
this.subCount();
146
return true;
147
}
@@ -207,7 +207,7 @@ public:
207
if (rc)
208
throw nogc_new!SyncError("Unable to signal semaphore");
209
} else version(Posix) {
210
- auto rc = sem_post(handle);
+ auto rc = sem_post(&handle);
211
212
213
0 commit comments