void _PyXBMC_AddPendingCall(PyThreadState* state, int(*func)(void*), void *arg) { CSingleLock lock(g_critSectionPyCall); SPending p; p.func = func; p.args = arg; p.state = state; g_callQueue.push_back(p); }
void _Py_AddPendingCall(int(*func)(void*), void *arg) { g_critSectionPyCall.enterMutex(); g_callQueue.push_back(Func(func, arg)); g_critSectionPyCall.leaveMutex(); }