Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/system/btif/src/
Dbtif_sock.cc66 static std::atomic_int thread_handle{-1}; variable
85 log::assert_that(thread_handle == -1, "assert failed: thread_handle == -1"); in btif_sock_init()
90 thread_handle = btsock_thread_create(btsock_signaled, NULL); in btif_sock_init()
91 if (thread_handle == -1) { in btif_sock_init()
96 status = btsock_rfc_init(thread_handle, uid_set); in btif_sock_init()
102 status = btsock_l2cap_init(thread_handle, uid_set); in btif_sock_init()
127 if (thread_handle != -1) btsock_thread_exit(thread_handle); in btif_sock_init()
128 thread_handle = -1; in btif_sock_init()
134 int saved_handle = thread_handle; in btif_sock_cleanup()
135 if (std::atomic_exchange(&thread_handle, -1) == -1) return; in btif_sock_cleanup()