mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
c2ef416d9d
The variable sIsPairing signals to the Bluetooth pairing response notifier if pairing is still requested. Being a boolean value, the variable only supported one pairing request at a time. To support multiple parallel pairing requests, this patch converts it into a counter. The counter is atomic, because notifier calls run in separate threads. Additionally, we now set sIsPairing before starting the pairing request. Otherwise the notifier might run before we can increment the variable. |
||
---|---|---|
.. | ||
BluetoothDBusService.cpp | ||
BluetoothDBusService.h | ||
BluetoothDBusUtils.cpp |