Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#8 send_async() race condition

open
Andreas Volz
Library (8)
5
2012-10-03
2011-04-15
Anonymous
No

If I call send_async() and then set a Slot on the PendingCall object, the method return may have already come while the slot was unassigned. I have to call PendingCall::completed() after assigning the slot() to see if the return was missed.

Discussion

  • Andreas Volz
    Andreas Volz
    2011-11-28

    Please provide problematic example code.