Home
last modified time | relevance | path

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

/system/bt/btif/src/
Dbtif_sock.cc56 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()
Dbtif_sock_thread.cc244 bool btsock_thread_remove_fd_and_close(int thread_handle, int fd) { in btsock_thread_remove_fd_and_close() argument
245 if (thread_handle < 0 || thread_handle >= MAX_THREAD) { in btsock_thread_remove_fd_and_close()
246 APPL_TRACE_ERROR("%s invalid thread handle: %d", __func__, thread_handle); in btsock_thread_remove_fd_and_close()
257 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);