Searched refs:thread_handle (Results 1 – 4 of 4) sorted by relevance
/system/bt/btif/src/ |
D | btif_sock.cc | 56 static std::atomic_int thread_handle{-1}; variable 70 CHECK(thread_handle == -1); in btif_sock_init() 75 thread_handle = btsock_thread_create(btsock_signaled, NULL); in btif_sock_init() 76 if (thread_handle == -1) { in btif_sock_init() 81 status = btsock_rfc_init(thread_handle, uid_set); in btif_sock_init() 87 status = btsock_l2cap_init(thread_handle, uid_set); in btif_sock_init() 112 if (thread_handle != -1) btsock_thread_exit(thread_handle); in btif_sock_init() 113 thread_handle = -1; in btif_sock_init() 119 int saved_handle = thread_handle; in btif_sock_cleanup() 120 if (std::atomic_exchange(&thread_handle, -1) == -1) return; in btif_sock_cleanup()
|
D | btif_sock_thread.cc | 251 bool btsock_thread_remove_fd_and_close(int thread_handle, int fd) { in btsock_thread_remove_fd_and_close() argument 252 if (thread_handle < 0 || thread_handle >= MAX_THREAD) { in btsock_thread_remove_fd_and_close() 253 APPL_TRACE_ERROR("%s invalid thread handle: %d", __func__, thread_handle); in btsock_thread_remove_fd_and_close() 264 OSI_NO_INTR(ret = send(ts[thread_handle].cmd_fdw, &cmd, sizeof(cmd), 0)); in btsock_thread_remove_fd_and_close()
|
/system/bt/btif/include/ |
D | btif_sock_thread.h | 49 bool btsock_thread_remove_fd_and_close(int thread_handle, int fd);
|
/system/chre/host/msm/daemon/ |
D | chre_daemon.cc | 111 static bool start_thread(pthread_t *thread_handle, 954 static bool start_thread(pthread_t *thread_handle, in start_thread() argument 957 int ret = pthread_create(thread_handle, NULL, thread_entry, arg); in start_thread()
|