Searched refs:thread_handle (Results 1 – 3 of 3) sorted by relevance
/system/bt/btif/src/ |
D | btif_sock.c | 42 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 …]
|
D | btif_sock_thread.c | 273 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/ |
D | btif_sock_thread.h | 46 bool btsock_thread_remove_fd_and_close(int thread_handle, int fd);
|