Closed ta0kira closed 3 years ago
I'm getting some other strange issues, e.g., an error in timedWait
in PrimesDemo
(which doesn't even call it), or getting a "not a Bool
" error for the return value of a function that correctly returns Bool
(verified in the generated C++.) This could be related to #163, like maybe the wrong functions are getting called.
example/primes/PrimesDemo: Failed condition: Bad ArgTuple index
From ThreadCondition.timedWait
From MutexLock.lock
From ThreadFlag.getEnabled at line 33 column 7 of "example/primes/flag.0rx"
From PrimesDemo.run at line 27 column 9 of "example/primes/primes-demo.0rx"
From main
timedWait
shouldn't be getting called. I really think this is a dispatching issue (#163).
Example:
The
ThreadCondition
in question is only used withinThreadFlag
, and always withMutexLock
.The problem might be that the mutex needs to be locked before signaling the threads to continue.