comparison gtk3/dw.c @ 1203:fc87309372ef

Same fix for GTK2/3 as I just committed for the Mac.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 30 Sep 2011 04:05:10 +0000
parents 40500dabb112
children 423da07c8f05
comparison
equal deleted inserted replaced
1202:5c1a01c6384d 1203:fc87309372ef
7525 int rc; 7525 int rc;
7526 7526
7527 if(!eve) 7527 if(!eve)
7528 return DW_ERROR_NON_INIT; 7528 return DW_ERROR_NON_INIT;
7529 7529
7530 pthread_mutex_lock (&(eve->mutex));
7531
7530 if(eve->posted) 7532 if(eve->posted)
7531 return DW_ERROR_GENERAL; 7533 {
7532 7534 pthread_mutex_unlock (&(eve->mutex));
7533 pthread_mutex_lock (&(eve->mutex)); 7535 return DW_ERROR_NONE;
7536 }
7537
7534 if(timeout != -1) 7538 if(timeout != -1)
7535 { 7539 {
7536 struct timeval now; 7540 struct timeval now;
7537 struct timespec timeo; 7541 struct timespec timeo;
7538 7542