Skip to content

Commit

Permalink
Updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
sanketr committed Feb 26, 2012
1 parent 338b688 commit 7d0719b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion T.hs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ getPtr = unsafeForeignPtrToPtr . (\(x,_,_) -> x) . SV.unsafeToForeignPtr

main :: IO ()
main = do
let nThreads = 12
let nThreads = 7
-- create two mvar lists for C FFI threads
m1 <- mapM (const newEmptyMVar) [1..nThreads] :: IO [MVar CInt]
m2 <- mapM (const newEmptyMVar) [1..nThreads] :: IO [MVar CInt]
Expand Down
4 changes: 2 additions & 2 deletions test.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

void startTest(int);

int gThreads = 0; //number of threads
FnPtr* gFn = NULL;
static int gThreads = 0; //number of threads
static FnPtr* gFn = NULL;
static pthread_mutex_t* gLock = NULL;

void initThreads(int nThreads, FnPtr* fns)
Expand Down

0 comments on commit 7d0719b

Please sign in to comment.