Lines Matching refs:thread_handle
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()
111 btsock_thread_exit(thread_handle); in btif_sock_cleanup()
116 thread_handle = -1; in btif_sock_cleanup()