Home
last modified time | relevance | path

Searched refs:sem_init (Results 1 – 11 of 11) sorted by relevance

/bionic/tests/
Dsemaphore_test.cpp35 TEST(semaphore, sem_init) { in TEST() argument
39 ASSERT_EQ(0, sem_init(&s, 0, 0)); in TEST()
40 ASSERT_EQ(0, sem_init(&s, 0, 1)); in TEST()
41 ASSERT_EQ(0, sem_init(&s, 0, 123)); in TEST()
45 ASSERT_EQ(-1, sem_init(&s, 0, -1)); in TEST()
51 ASSERT_EQ(0, sem_init(&s, 0, SEM_VALUE_MAX)); in TEST()
55 ASSERT_EQ(-1, sem_init(&s, 0, static_cast<unsigned>(SEM_VALUE_MAX) + 1)); in TEST()
63 ASSERT_EQ(0, sem_init(&s, 0, 3)); in TEST()
84 ASSERT_EQ(0, sem_init(&s, 0, 0)); in TEST()
113 ASSERT_EQ(0, sem_init(&s, 0, 0)); in sem_timedwait_helper()
[all …]
Dmalloc_test.cpp1513 ASSERT_EQ(0, sem_init(&sem, 0, 0)); in TEST()
/bionic/benchmarks/
Dsemaphore_benchmark.cpp28 sem_init(&semaphore, 1, 1); in BM_semaphore_sem_getvalue()
39 sem_init(&semaphore, 1, 1); in BM_semaphore_sem_wait_sem_post()
/bionic/tests/headers/posix/
Dsemaphore_h.c41 FUNCTION(sem_init, int (*f)(sem_t*, int, unsigned)); in semaphore_h()
/bionic/libc/include/
Dsemaphore.h51 int sem_init(sem_t* _Nonnull __sem, int __shared, unsigned int __value);
/bionic/libc/bionic/
Dsemaphore.cpp103 int sem_init(sem_t* sem, int pshared, unsigned int value) { in sem_init() function
Dpthread_internal.cpp217 if (sem_init(&g_sem, 0, 0) != 0) { in android_run_on_all_threads()
/bionic/libc/tools/
Dposix-2013.txt893 sem_init
/bionic/libc/
Dlibc.map.txt905 sem_init;
/bionic/tools/versioner/platforms/
Dlibc.map.txt905 sem_init;
/bionic/benchmarks/linker_relocation/gen/
Dlinker_reloc_bench_main.S3590 CALL(sem_init)