Searched refs:semaphore (Results 1 – 14 of 14) sorted by relevance
/system/bt/osi/test/ |
D | semaphore_test.cc | 17 semaphore_t* semaphore; member 26 CHECK(helper->semaphore); in sleep_then_increment_counter() 29 semaphore_post(helper->semaphore); in sleep_then_increment_counter() 36 semaphore_t* semaphore = semaphore_new(0); in TEST_F() local 37 ASSERT_TRUE(semaphore != NULL); in TEST_F() 38 semaphore_free(semaphore); in TEST_F() 42 semaphore_t* semaphore = semaphore_new(3); in TEST_F() local 43 ASSERT_TRUE(semaphore != NULL); in TEST_F() 45 EXPECT_TRUE(semaphore_try_wait(semaphore)); in TEST_F() 46 EXPECT_TRUE(semaphore_try_wait(semaphore)); in TEST_F() [all …]
|
D | alarm_test.cc | 35 static semaphore_t* semaphore; variable 54 semaphore = semaphore_new(0); in SetUp() 58 semaphore_free(semaphore); in TearDown() 65 semaphore_post(semaphore); in cb() 72 semaphore_post(semaphore); in ordered_cb() 118 semaphore_wait(semaphore); in TEST_F() 135 semaphore_wait(semaphore); in TEST_F() 154 semaphore_wait(semaphore); in TEST_F() 172 semaphore_wait(semaphore); in TEST_F() 190 semaphore_wait(semaphore); in TEST_F() [all …]
|
/system/bt/osi/src/ |
D | semaphore.cc | 55 void semaphore_free(semaphore_t* semaphore) { in semaphore_free() argument 56 if (!semaphore) return; in semaphore_free() 58 if (semaphore->fd != INVALID_FD) close(semaphore->fd); in semaphore_free() 59 osi_free(semaphore); in semaphore_free() 62 void semaphore_wait(semaphore_t* semaphore) { in semaphore_wait() argument 63 CHECK(semaphore != NULL); in semaphore_wait() 64 CHECK(semaphore->fd != INVALID_FD); in semaphore_wait() 67 if (eventfd_read(semaphore->fd, &value) == -1) in semaphore_wait() 72 bool semaphore_try_wait(semaphore_t* semaphore) { in semaphore_try_wait() argument 73 CHECK(semaphore != NULL); in semaphore_try_wait() [all …]
|
D | future.cc | 32 semaphore_t* semaphore; // NULL semaphore means immediate future member 41 ret->semaphore = semaphore_new(0); in future_new() 42 if (!ret->semaphore) { in future_new() 69 semaphore_post(future->semaphore); in future_ready() 76 if (future->semaphore) semaphore_wait(future->semaphore); in future_await() 86 semaphore_free(future->semaphore); in future_free()
|
/system/bt/btif/src/ |
D | stack_manager.cc | 70 semaphore_t* semaphore = semaphore_new(0); in init_stack() local 72 base::Bind(event_init_stack, semaphore)); in init_stack() 73 semaphore_wait(semaphore); in init_stack() 74 semaphore_free(semaphore); in init_stack() 90 semaphore_t* semaphore = semaphore_new(0); in clean_up_stack() local 92 base::Bind(event_clean_up_stack, semaphore)); in clean_up_stack() 93 semaphore_wait(semaphore); in clean_up_stack() 94 semaphore_free(semaphore); in clean_up_stack() 104 semaphore_t* semaphore = (semaphore_t*)context; in event_init_stack() local 125 if (semaphore) semaphore_post(semaphore); in event_init_stack() [all …]
|
/system/bt/osi/include/ |
D | semaphore.h | 33 void semaphore_free(semaphore_t* semaphore); 37 void semaphore_wait(semaphore_t* semaphore); 42 bool semaphore_try_wait(semaphore_t* semaphore); 45 void semaphore_post(semaphore_t* semaphore); 57 int semaphore_get_fd(const semaphore_t* semaphore);
|
/system/bt/osi/ |
D | BUILD.gn | 35 "src/semaphore.cc",
|
D | Android.bp | 62 "src/semaphore.cc",
|
/system/extras/perfprofd/tests/ |
D | perfprofd_test.cc | 309 std::string semaphore(config_dir_); in remove_semaphore_file() local 310 semaphore += "/" SEMAPHORE_FILENAME; in remove_semaphore_file() 311 unlink(semaphore.c_str()); in remove_semaphore_file() 316 std::string semaphore(config_dir_); in create_semaphore_file() local 317 semaphore += "/" SEMAPHORE_FILENAME; in create_semaphore_file() 318 close(open(semaphore.c_str(), O_WRONLY|O_CREAT, 0600)); in create_semaphore_file()
|
/system/sepolicy/prebuilts/api/26.0/public/ |
D | domain.te | 795 # For example, there is no way to automatically release a SysV semaphore
|
/system/sepolicy/prebuilts/api/27.0/public/ |
D | domain.te | 788 # For example, there is no way to automatically release a SysV semaphore
|
/system/sepolicy/prebuilts/api/28.0/public/ |
D | domain.te | 1092 # For example, there is no way to automatically release a SysV semaphore
|
/system/sepolicy/public/ |
D | domain.te | 1091 # For example, there is no way to automatically release a SysV semaphore
|
/system/sepolicy/prebuilts/api/29.0/public/ |
D | domain.te | 1091 # For example, there is no way to automatically release a SysV semaphore
|