SWDEV-480209 - Make internal callbacks non-blocking

Change-Id: Ic918d08f341abfd9a7c167d09f9c723cdc43157f
Tá an tiomantas seo le fáil i:
Anusha GodavarthySurya údaraithe agus Anusha Godavarthy Surya tiomanta 2025-01-10 02:16:11 -05:00
1 tuismitheoir c9dd95bf6c
tiomantas 683a942364
11 comhad athraithe
+38 -34

Níor tháinig aon chomhaid le do chuardach

+5 -5
Féach ar an gComhad
@@ -72,10 +72,10 @@ class Event : public RuntimeObject {
std::atomic<CallBackFunction> callback_; //!< callback function pointer.
void* data_; //!< user data passed to the callback function.
int32_t status_; //!< execution status triggering the callback.
CallBackEntry(int32_t status, CallBackFunction callback, void* data)
: callback_(callback), data_(data), status_(status) {}
int32_t status_; //!< execution status triggering the callback.
bool blocking_; //!< TRUE if callback is blocking
CallBackEntry(int32_t status, CallBackFunction callback, void* data, bool blocking)
: callback_(callback), data_(data), status_(status), blocking_(blocking) {}
};
public:
@@ -173,7 +173,7 @@ class Event : public RuntimeObject {
int32_t status() const { return status_.load(std::memory_order_relaxed); }
//! Insert the given \a callback into the callback stack.
bool setCallback(int32_t status, CallBackFunction callback, void* data);
bool setCallback(int32_t status, CallBackFunction callback, void* data, bool blocking = true);
/*! \brief Set the event status.
*