dxFeed Graal CXX API v9.0.0
Loading...
Searching...
No Matches
ListenerCallScope Struct Referencefinal

The call of a listener of SimpleHandler in progress on the current thread. More...

#include <Handler.hpp>

Static Public Member Functions

static bool isActive () noexcept

Detailed Description

The call of a listener of SimpleHandler in progress on the current thread.

SimpleHandler::remove() does not wait for the calls in progress when the current thread calls a listener or a callback of the library: the wait could deadlock (a listener that removes itself, two listeners that remove each other on two threads). The counter is in the library, so it is one for the process, not one for each module.

Member Function Documentation

◆ isActive()

bool ListenerCallScope::isActive ( )
staticnoexcept
Returns
true if the current thread calls a listener of SimpleHandler or a callback of the library.

Referenced by MarketDepthModel< O >::close().