Home
last modified time | relevance | path

Searched refs:thread_handle (Results 1 – 4 of 4) sorted by relevance

/system/bt/btif/src/
Dbtif_sock.cc55 static std::atomic_int thread_handle{-1}; variable
69 CHECK(thread_handle == -1); in btif_sock_init()
74 thread_handle = btsock_thread_create(btsock_signaled, NULL); in btif_sock_init()
75 if (thread_handle == -1) { in btif_sock_init()
80 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()
114 if (thread_handle != -1) btsock_thread_exit(thread_handle); in btif_sock_init()
115 thread_handle = -1; in btif_sock_init()
121 int saved_handle = thread_handle; in btif_sock_cleanup()
122 if (std::atomic_exchange(&thread_handle, -1) == -1) return; in btif_sock_cleanup()
Dbtif_sock_thread.cc251 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/
Dbtif_sock_thread.h49 bool btsock_thread_remove_fd_and_close(int thread_handle, int fd);
/system/chre/host/msm/daemon/
Dchre_daemon.cc110 static bool start_thread(pthread_t *thread_handle,
871 static bool start_thread(pthread_t *thread_handle, in start_thread() argument
874 int ret = pthread_create(thread_handle, NULL, thread_entry, arg); in start_thread()