Home
last modified time | relevance | path

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

/system/bt/btif/src/
Dbtif_sock.c40 static int thread_handle = -1; variable
55 assert(thread_handle == -1); in btif_sock_init()
59 thread_handle = btsock_thread_create(btsock_signaled, NULL); in btif_sock_init()
60 if (thread_handle == -1) { in btif_sock_init()
65 bt_status_t status = btsock_rfc_init(thread_handle); in btif_sock_init()
71 status = btsock_l2cap_init(thread_handle); in btif_sock_init()
96 if (thread_handle != -1) in btif_sock_init()
97 btsock_thread_exit(thread_handle); in btif_sock_init()
98 thread_handle = -1; in btif_sock_init()
103 if (thread_handle == -1) in btif_sock_cleanup()
[all …]
Dbtif_sock_thread.c331 bool btsock_thread_remove_fd_and_close(int thread_handle, int fd) in btsock_thread_remove_fd_and_close() argument
333 if (thread_handle < 0 || thread_handle >= MAX_THREAD) in btsock_thread_remove_fd_and_close()
335 APPL_TRACE_ERROR("%s invalid thread handle: %d", __func__, thread_handle); in btsock_thread_remove_fd_and_close()
345 return send(ts[thread_handle].cmd_fdw, &cmd, sizeof(cmd), 0) == sizeof(cmd); in btsock_thread_remove_fd_and_close()
/system/bt/btif/include/
Dbtif_sock_thread.h44 bool btsock_thread_remove_fd_and_close(int thread_handle, int fd);