mirror of
https://github.com/facebook/Haxl.git
synced 2024-12-22 16:21:30 +03:00
Fix profling build for tests (#146)
Summary: Fix profling build for tests and update TARGETS to include profling build for tests in contbuild. Closes #146 Reviewed By: simonmar Differential Revision: D34542444 fbshipit-source-id: 0e188f5b31bf30e684dbcb1447cbfeac779add02
This commit is contained in:
parent
6deb0cac0d
commit
1c991973aa
@ -56,10 +56,10 @@ instance Hashable (CacheableReq x) where
|
||||
|
||||
|
||||
newResult :: a -> IO (IVar u w a)
|
||||
newResult a = IVar <$> newIORef (IVarFull (Ok a NilWrites))
|
||||
newResult a = newFullIVar (Ok a NilWrites)
|
||||
|
||||
takeResult :: IVar u w a -> IO (ResultVal a w)
|
||||
takeResult (IVar ref) = do
|
||||
takeResult IVar{ivarRef = ref} = do
|
||||
e <- readIORef ref
|
||||
case e of
|
||||
IVarFull a -> return a
|
||||
|
Loading…
Reference in New Issue
Block a user