Browse files

reword comment

  • Loading branch information...
kmcallister committed Nov 4, 2011
1 parent 52a4d9f commit ca511a3a0332865b451acbc9286ee04f89886d1a
Showing with 2 additions and 2 deletions.
  1. +2 −2 System/GlobalLock/Internal.hs
@@ -15,8 +15,8 @@ import Control.Concurrent.MVar
{- Importing c_get_global with 'unsafe' decreases locking latency by
- about 50%. It's okay because that function just reads a C static
- global.
+ about 50%. The C function just reads a static variable, so it's
+ okay to use 'unsafe'.
c_set_global must not be imported 'unsafe' because it uses GCC
atomic-operation builtins which, in the worst case, might call a

0 comments on commit ca511a3

Please sign in to comment.