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:
Zejun Wu 2022-03-01 13:37:13 -08:00 committed by Facebook GitHub Bot
parent 6deb0cac0d
commit 1c991973aa

View File

@ -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