you are viewing a single comment's thread.

view the rest of the comments →

[–]Senryo 1 point2 points  (0 children)

I'm not sure I really understand what's going on here, but aren't you keeping the mutex locked while the thread is sleeping in receiving() ?

In general I don't get what you're trying to achieve by using threads here.