View | Details | Raw Unified | Return to bug 276818 | Differences between
and this patch

Collapse All | Expand All

(-)b/mtx.c (-4 / +8 lines)
Lines 60-69 mtx_init(mtx_t *mtx, int type) Link Here
60
60
61
	if (pthread_mutexattr_init(&attr) != 0)
61
	if (pthread_mutexattr_init(&attr) != 0)
62
		return (thrd_error);
62
		return (thrd_error);
63
	if (pthread_mutexattr_settype(&attr, mt) != 0)
63
64
		return (thrd_error);
64
	if (pthread_mutexattr_settype(&attr, mt) != 0 ||
65
	if (pthread_mutex_init(mtx, &attr) != 0)
65
	    pthread_mutex_init(mtx, &attr) != 0)
66
	{
67
		pthread_mutexattr_destroy(&attr);
66
		return (thrd_error);
68
		return (thrd_error);
69
	}
70
71
	pthread_mutexattr_destroy(&attr);
67
	return (thrd_success);
72
	return (thrd_success);
68
}
73
}
69
74
70
- 

Return to bug 276818