Skip to content

Commit

Permalink
BadMutex: wrap functions in Lua functions.
Browse files Browse the repository at this point in the history
On the surface, this appears to make things crash less?
  • Loading branch information
torque committed Feb 28, 2015
1 parent b7c2e23 commit 714ef07
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions bad-mutex/BadMutex.moon
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ for path in *libraryPaths
assert success, BM

return {
lock: BM.lock
tryLock: BM.try_lock
unlock: BM.unlock
lock: ->
BM.lock!

tryLock: ->
return BM.try_lock!

unlock: ->
BM.unlock!
}

0 comments on commit 714ef07

Please sign in to comment.