samanbarghi / uThreads

A concurrent user-level thread library implemented in C++
Other
314 stars 22 forks source link

Provide a way for uThreads to inform others about their termination #9

Closed samanbarghi closed 8 years ago

samanbarghi commented 9 years ago

In other words, provide a join function where a uThread can wait for another uThread to finish its task and terminate. For example in a producer-consumer relationship, the consumer thread might spawn a new uThread and later has to wait for that uThread to finish and produce some work for it to continue.

samanbarghi commented 8 years ago

uThreads can be joinable now: 57e8b055c5e43edd1678e769c6458b0a6926fd01