Lines Matching defs:thiz
26 IThreadSync *thiz = (IThreadSync *) self;
27 interface_lock_exclusive(thiz);
29 if (thiz->mInCriticalSection) {
30 if (!pthread_equal(thiz->mOwner, pthread_self())) {
31 ++thiz->mWaiting;
32 interface_cond_wait(thiz);
39 thiz->mInCriticalSection = SL_BOOLEAN_TRUE;
40 thiz->mOwner = pthread_self();
44 interface_unlock_exclusive(thiz);
54 IThreadSync *thiz = (IThreadSync *) self;
55 interface_lock_exclusive(thiz);
56 if (!thiz->mInCriticalSection || !pthread_equal(thiz->mOwner, pthread_self())) {
59 thiz->mInCriticalSection = SL_BOOLEAN_FALSE;
60 memset(&thiz->mOwner, 0, sizeof(pthread_t));
61 if (thiz->mWaiting) {
62 --thiz->mWaiting;
63 interface_cond_signal(thiz);
67 interface_unlock_exclusive(thiz);
80 IThreadSync *thiz = (IThreadSync *) self;
81 thiz->mItf = &IThreadSync_Itf;
82 thiz->mInCriticalSection = SL_BOOLEAN_FALSE;
83 thiz->mWaiting = 0;
84 memset(&thiz->mOwner, 0, sizeof(pthread_t));
89 IThreadSync *thiz = (IThreadSync *) self;
90 if (thiz->mInCriticalSection) {