Add a Timer setting for the CondWait function.
Now the function looks like this:
Declare Sub CondWait ( ByVal handle As Any Ptr, ByVal mutex As Any Ptr )
I ask you to do it:
Declare Sub CondWait ( ByVal handle As Any Ptr, ByVal mutex As Any Ptr , byval dTime as Double )
As a result, the function will either wait for a condition or a set period of time.