Commit 91238453 authored by Simon Marlow's avatar Simon Marlow
Browse files

tryGrabCapability should be using TRY_ACQUIRE_LOCK

parent 86836a2e
......@@ -973,8 +973,10 @@ prodCapability (Capability *cap, Task *task)
tryGrabCapability (Capability *cap, Task *task)
int r;
if (cap->running_task != NULL) return rtsFalse;
r = TRY_ACQUIRE_LOCK(&cap->lock);
if (r != 0) return rtsFalse;
if (cap->running_task != NULL) {
return rtsFalse;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment