Home
last modified time | relevance | path

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

/system/bt/btif/src/
Dbtif_sock.c42 static int thread_handle = -1; variable
57 assert(thread_handle == -1); in btif_sock_init()
61 thread_handle = btsock_thread_create(btsock_signaled, NULL); in btif_sock_init()
62 if (thread_handle == -1) { in btif_sock_init()
67 bt_status_t status = btsock_rfc_init(thread_handle, uid_set); in btif_sock_init()
73 status = btsock_l2cap_init(thread_handle, uid_set); in btif_sock_init()
98 if (thread_handle != -1) in btif_sock_init()
99 btsock_thread_exit(thread_handle); in btif_sock_init()
100 thread_handle = -1; in btif_sock_init()
106 if (thread_handle == -1) in btif_sock_cleanup()
[all …]
Dbtif_sock_thread.c273 bool btsock_thread_remove_fd_and_close(int thread_handle, int fd) in btsock_thread_remove_fd_and_close() argument
275 if (thread_handle < 0 || thread_handle >= MAX_THREAD) in btsock_thread_remove_fd_and_close()
277 APPL_TRACE_ERROR("%s invalid thread handle: %d", __func__, thread_handle); in btsock_thread_remove_fd_and_close()
289 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.h46 bool btsock_thread_remove_fd_and_close(int thread_handle, int fd);