summaryrefslogtreecommitdiff
path: root/src/threads/cnd_init.c
blob: 94cc142f235c5f7c76eb20b8a2edfd0ebb7bb5ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#if 0

#include <threads.h>
#include <pthread.h>
#include <errno.h>

int cnd_init(cnd_t *cond)
{
	SIGNAL_SAFE(0);
	switch (pthread_cond_init(cond, 0)) {
	case 0:
		return thrd_success;

	case ENOMEM:
		return thrd_nomem;

	default:
		break;
	}

	return thrd_error;
}

__check_1(int, 0, cnd_init, cnd_t *)

/*
STDC(201112)
*/


#endif