Skip to content

Commit a2785e0

Browse files
committed
Bluetooth: Host: Amend connected() callback documentation
Warn users that the connected() callback will execute on either the system work-queue thread or the BT RX WQ thread. Signed-off-by: Christophe Dufaza <[email protected]>
1 parent 89eae64 commit a2785e0

File tree

1 file changed

+5
-0
lines changed
  • include/zephyr/bluetooth

1 file changed

+5
-0
lines changed

include/zephyr/bluetooth/conn.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1660,6 +1660,11 @@ struct bt_conn_cb {
16601660
* callback. Instead use the connected callback of the
16611661
* advertising set.
16621662
*
1663+
* @note This callback will run on the same, non-preemptible, work-queue thread
1664+
* that processes incoming low priority HCI packets and invokes GATT callbacks
1665+
* such as @ref bt_gatt_attr.read and @ref bt_gatt_attr.write.
1666+
* Blocking operations are therefore discouraged.
1667+
*
16631668
* @param conn New connection object.
16641669
* @param err HCI error. Zero for success, non-zero otherwise.
16651670
*

0 commit comments

Comments
 (0)