"Sigmathaar" <si********@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
When programming a multithread application sometimes there are problems
in the synchronisation of each thread. Most of the type a bad
synchornisation may result on a missing return code or a return without
any sense. For further aid you may post the code you are working at so
we can see what the problem is.
Please quote the text of the message you're responding to.
The OP stated that there was no return (statement) for the function that was
declared to return a bool. That makes the code exhibit undefined behavior.
Threading is not relevant to the issue. If you declare a function to return
a value, then it must in fact return a value via a return statement.
-Howard