Search the web
Sign In
New User? Sign Up
dmalloc · Debug Malloc Library (dmalloc) Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Threads program block when exiting   Message List  
Reply | Forward Message #513 of 529 |
This program created some threads, do a work, and when stopping calls
this function:

int i;

pthread_mutex_lock(&appStopMutex);

/* Send information to all the threads: */
applicationStopping = 1;

pthread_mutex_unlock(&appStopMutex);

/* Wait for all the threads to finish: */
for (i = 0; i < startedThreadsCount; i++) {
pthread_join(startedThreads[i], NULL);
--> This blocks in the last thread
}

Do anyone has an idea why this happens?

Thanks,
Eduardo





Mon Jul 14, 2003 6:06 pm

esgr_pt
Offline Offline
Send Email Send Email

Forward
Message #513 of 529 |
Expand Messages Author Sort by Date

This program created some threads, do a work, and when stopping calls this function: int i; pthread_mutex_lock(&appStopMutex); /* Send information to all the...
Eduardo Reis
esgr_pt
Offline Send Email
Sep 8, 2003
1:25 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help