Menu

#4 thread exiting by return locks tasks

open
nobody
None
5
2006-03-29
2006-03-29
Anonymous
No

Hi

I dont expect a fix for this but someone may read it
and find it useful!

If you allow a task to exit by a return (it falls
though to the wrapper), taskLock is called and the
function pthread_exit is called before the function to
taskUnlock.

This leaves a deadlock on the next call to taskLock
following this.

The fix is to call taskUnlock before pthread_exit in
the function taskDeleteForce.

Steve (stever@citel.com)

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.