comparison gtk/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 f0df014e44d8
children 53547c9c99a2
comparison
equal deleted inserted replaced
1202:5c1a01c6384d 1203:fc87309372ef
8858 int rc; 8858 int rc;
8859 8859
8860 if(!eve) 8860 if(!eve)
8861 return DW_ERROR_NON_INIT; 8861 return DW_ERROR_NON_INIT;
8862 8862
8863 pthread_mutex_lock (&(eve->mutex));
8864
8863 if(eve->posted) 8865 if(eve->posted)
8864 return DW_ERROR_GENERAL; 8866 {
8865 8867 pthread_mutex_unlock (&(eve->mutex));
8866 pthread_mutex_lock (&(eve->mutex)); 8868 return DW_ERROR_NONE;
8869 }
8870
8867 if(timeout != -1) 8871 if(timeout != -1)
8868 { 8872 {
8869 struct timeval now; 8873 struct timeval now;
8870 struct timespec timeo; 8874 struct timespec timeo;
8871 8875