Searched refs:sem_init (Results 1 – 11 of 11) sorted by relevance
/bionic/tests/ |
D | semaphore_test.cpp | 35 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 …]
|
D | malloc_test.cpp | 1513 ASSERT_EQ(0, sem_init(&sem, 0, 0)); in TEST()
|
/bionic/benchmarks/ |
D | semaphore_benchmark.cpp | 28 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/ |
D | semaphore_h.c | 41 FUNCTION(sem_init, int (*f)(sem_t*, int, unsigned)); in semaphore_h()
|
/bionic/libc/include/ |
D | semaphore.h | 51 int sem_init(sem_t* _Nonnull __sem, int __shared, unsigned int __value);
|
/bionic/libc/bionic/ |
D | semaphore.cpp | 103 int sem_init(sem_t* sem, int pshared, unsigned int value) { in sem_init() function
|
D | pthread_internal.cpp | 217 if (sem_init(&g_sem, 0, 0) != 0) { in android_run_on_all_threads()
|
/bionic/libc/tools/ |
D | posix-2013.txt | 893 sem_init
|
/bionic/libc/ |
D | libc.map.txt | 905 sem_init;
|
/bionic/tools/versioner/platforms/ |
D | libc.map.txt | 905 sem_init;
|
/bionic/benchmarks/linker_relocation/gen/ |
D | linker_reloc_bench_main.S | 3590 CALL(sem_init)
|