xbmc
|
This class represents a specialization of the callback handler that specifically checks to see if we're in an OK thread state based on Python specifics. More...
#include <CallbackHandler.h>
Public Member Functions | |
PythonCallbackHandler () | |
We are ASS-U-MEing that this construction is happening within the context of a Python call. More... | |
bool | isStateOk (AddonClass *obj) override |
Now we are answering the question as to whether or not we are in the PyThreadState that we were in when we started. | |
bool | shouldRemoveCallback (AddonClass *obj, void *threadState) override |
For this method we expect the PyThreadState to be passed as the user data for the check. More... | |
![]() | |
void | invokeCallback (Callback *cb) override |
![]() | |
const char * | GetClassname () const |
LanguageHook * | GetLanguageHook () |
bool | isDeallocating () |
This method should be called while holding a Synchronize on the object. More... | |
void | Release () const |
void | Acquire () const |
Additional Inherited Members | |
![]() | |
static void | makePendingCalls () |
static void | clearPendingCalls (void *userData) |
![]() | |
static short | getNumAddonClasses () |
![]() | |
virtual void | deallocating () |
This method is meant to be called from the destructor of the lowest level class. More... | |
![]() | |
static short | getNextClassIndex () |
This is meant to be called during static initialization and so isn't synchronized. | |
![]() | |
LanguageHook * | languageHook |
This class represents a specialization of the callback handler that specifically checks to see if we're in an OK thread state based on Python specifics.
XBMCAddon::Python::PythonCallbackHandler::PythonCallbackHandler | ( | ) |
We are ASS-U-MEing that this construction is happening within the context of a Python call.
This way we can store off the PyThreadState to later verify that we're handling callbacks in the appropriate thread.
|
overridevirtual |
For this method we expect the PyThreadState to be passed as the user data for the check.
Implements XBMCAddon::RetardedAsyncCallbackHandler.