We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc3b85f commit 4f84ea8Copy full SHA for 4f84ea8
1 file changed
src/hx/thread/CountingSemaphore.apple.cpp
@@ -23,7 +23,7 @@ void hx::thread::CountingSemaphore_obj::acquire()
23
{
24
hx::AutoGCFreeZone zone;
25
26
- if (0 != (dispatch_semaphore_wait(impl->semaphore, DISPATCH_TIME_FOREVER)))
+ if (0 != dispatch_semaphore_wait(impl->semaphore, DISPATCH_TIME_FOREVER))
27
28
hx::Throw(HX_CSTRING("Failed to wait for semaphore"));
29
}
@@ -39,7 +39,7 @@ bool hx::thread::CountingSemaphore_obj::tryAcquire(Null<double> timeout)
39
40
41
return
42
- (0 = dispatch_semaphore_wait(
+ (0 == dispatch_semaphore_wait(
43
impl->semaphore,
44
dispatch_time(DISPATCH_TIME_NOW, static_cast<int64_t>(timeout.Default(0)) * 1000 * 1000 * 1000)));
45
0 commit comments