Re: [gtk-list] Re: [patch] Multiple/Java thread support



Small bug in the previous patch:

pthreads_create_mutex should read...

gpointer
pthreads_create_mutex (gpointer init)
{
  pthread_mutex_t *mutex = 
    (pthread_mutex_t *) g_malloc (sizeof (pthread_mutex_t));
  pthread_mutex_init (mutex, (const pthread_mutexattr_t *) init);
  return mutex;
}

The arguments to pthread_mutex_init in the patch were always 
(mutex, NULL).

-- 
Paul Fisher * rao@gnu.org



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]