struct queue *chunk_que;

chunk_que = spm_normal_malloc(sizeof(struct queue) * nqueues);

pthread_mutex_init(&que->mutex, NULL);

pthread_mutex_lock(&que->mutex); //The error occurs here!

Go check your test program. It is not doing what you think it is.
Check the return code from your call to pthread_mutex_init().

Also verify pthread_mutex_init() isn't being called more than once.
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to