Lines Matching refs:thiz

44 void object_lock_exclusive_(IObject *thiz, const char *file, int line)
47 ok = pthread_mutex_trylock(&thiz->mMutex);
50 int32_t oldGeneration = thiz->mGeneration;
59 ok = pthread_mutex_timedlock(&thiz->mMutex, &ts);
73 int32_t newGeneration = thiz->mGeneration;
83 pthread_t owner = thiz->mOwner;
87 " (tid %d) at %s:%d\n", file, line, *(void **)&me, gettid(), thiz,
88 *(void **)&owner, ownerTid, thiz->mFile, thiz->mLine);
92 ok = pthread_mutex_lock(&thiz->mMutex);
101 if (0 != memcmp(&zero, &thiz->mOwner, sizeof(pthread_t))) {
103 pthread_t owner = thiz->mOwner;
107 " %p (tid %d) at %s:%d\n", file, line, *(void **)&me, gettid(), thiz,
108 *(void **)&owner, ownerTid, thiz->mFile, thiz->mLine);
112 thiz, *(void **)&owner, ownerTid, thiz->mFile, thiz->mLine);
116 thiz->mOwner = pthread_self();
117 thiz->mFile = file;
118 thiz->mLine = line;
120 ++thiz->mGeneration;
123 void object_lock_exclusive(IObject *thiz)
126 ok = pthread_mutex_lock(&thiz->mMutex);
135 void object_unlock_exclusive_(IObject *thiz, const char *file, int line)
137 assert(pthread_equal(pthread_self(), thiz->mOwner));
138 assert(NULL != thiz->mFile);
139 assert(0 != thiz->mLine);
140 memset(&thiz->mOwner, 0, sizeof(pthread_t));
141 thiz->mFile = file;
142 thiz->mLine = line;
144 ok = pthread_mutex_unlock(&thiz->mMutex);
148 void object_unlock_exclusive(IObject *thiz)
151 ok = pthread_mutex_unlock(&thiz->mMutex);
162 void object_unlock_exclusive_attributes_(IObject *thiz, unsigned attributes,
165 void object_unlock_exclusive_attributes(IObject *thiz, unsigned attributes)
170 assert(pthread_equal(pthread_self(), thiz->mOwner));
171 assert(NULL != thiz->mFile);
172 assert(0 != thiz->mLine);
178 SLuint32 objectID = IObjectToObjectID(thiz);
200 asynchronous &= ~(*handler)(thiz);
207 unsigned oldAttributesMask = thiz->mAttributesMask;
208 thiz->mAttributesMask = oldAttributesMask | asynchronous;
221 CAudioPlayer *ap = (CAudioPlayer *) thiz;
237 memset(&thiz->mOwner, 0, sizeof(pthread_t));
238 thiz->mFile = file;
239 thiz->mLine = line;
241 ok = pthread_mutex_unlock(&thiz->mMutex);
249 CAudioPlayer *ap = (CAudioPlayer *) thiz;
270 unsigned id = thiz->mInstanceID;
274 IEngine *thisEngine = &thiz->mEngine->mEngine;
288 void object_cond_wait_(IObject *thiz, const char *file, int line)
291 assert(pthread_equal(pthread_self(), thiz->mOwner));
292 assert(NULL != thiz->mFile);
293 assert(0 != thiz->mLine);
294 memset(&thiz->mOwner, 0, sizeof(pthread_t));
295 thiz->mFile = file;
296 thiz->mLine = line;
299 ok = pthread_cond_wait(&thiz->mCond, &thiz->mMutex);
302 thiz->mOwner = pthread_self();
303 thiz->mFile = file;
304 thiz->mLine = line;
307 void object_cond_wait(IObject *thiz)
310 ok = pthread_cond_wait(&thiz->mCond, &thiz->mMutex);
318 void object_cond_signal(IObject *thiz)
321 ok = pthread_cond_signal(&thiz->mCond);
330 void object_cond_broadcast(IObject *thiz)
333 ok = pthread_cond_broadcast(&thiz->mCond);