correctly init some variables that I missed somehow. I blame Sachiel.

SVN revision: 50465
This commit is contained in:
Mike Blumenkrantz 2010-07-23 22:28:18 +00:00
parent 15f3719964
commit bc9b536b14
1 changed files with 6 additions and 0 deletions

View File

@ -236,6 +236,9 @@ _ecore_direct_worker(Ecore_Pthread_Worker *work)
work->func_cancel = NULL;
work->cancel = EINA_FALSE;
work->long_run = EINA_FALSE;
work->hash = NULL;
pthread_cond_init(&work->cond, NULL);
pthread_mutex_init(&work->mutex, NULL);
ecore_pipe_write(pth->p, &work, sizeof (Ecore_Pthread_Worker *));
@ -285,6 +288,9 @@ _ecore_thread_worker(Ecore_Pthread_Data *pth)
work->func_cancel = NULL;
work->cancel = EINA_FALSE;
work->long_run = EINA_FALSE;
work->hash = NULL;
pthread_cond_init(&work->cond, NULL);
pthread_mutex_init(&work->mutex, NULL);
ecore_pipe_write(pth->p, &work, sizeof (Ecore_Pthread_Worker *));