Lines Matching refs:thiz

34 void object_lock_exclusive_(IObject *thiz, const char *file, int line)
37 ok = pthread_mutex_trylock(&thiz->mMutex);
40 int32_t oldGeneration = thiz->mGeneration;
46 ok = pthread_mutex_lock_timeout_np(&thiz->mMutex, backoffs[i]);
60 int32_t newGeneration = thiz->mGeneration;
70 pthread_t owner = thiz->mOwner;
74 " (tid %d) at %s:%d\n", file, line, *(void **)&me, gettid(), thiz,
75 *(void **)&owner, ownerTid, thiz->mFile, thiz->mLine);
79 ok = pthread_mutex_lock(&thiz->mMutex);
88 if (0 != memcmp(&zero, &thiz->mOwner, sizeof(pthread_t))) {
90 pthread_t owner = thiz->mOwner;
94 " %p (tid %d) at %s:%d\n", file, line, *(void **)&me, gettid(), thiz,
95 *(void **)&owner, ownerTid, thiz->mFile, thiz->mLine);
99 thiz, *(void **)&owner, ownerTid, thiz->mFile, thiz->mLine);
103 thiz->mOwner = pthread_self();
104 thiz->mFile = file;
105 thiz->mLine = line;
107 ++thiz->mGeneration;
110 void object_lock_exclusive(IObject *thiz)
113 ok = pthread_mutex_lock(&thiz->mMutex);
122 void object_unlock_exclusive_(IObject *thiz, const char *file, int line)
124 assert(pthread_equal(pthread_self(), thiz->mOwner));
125 assert(NULL != thiz->mFile);
126 assert(0 != thiz->mLine);
127 memset(&thiz->mOwner, 0, sizeof(pthread_t));
128 thiz->mFile = file;
129 thiz->mLine = line;
131 ok = pthread_mutex_unlock(&thiz->mMutex);
135 void object_unlock_exclusive(IObject *thiz)
138 ok = pthread_mutex_unlock(&thiz->mMutex);
149 void object_unlock_exclusive_attributes_(IObject *thiz, unsigned attributes,
152 void object_unlock_exclusive_attributes(IObject *thiz, unsigned attributes)
157 assert(pthread_equal(pthread_self(), thiz->mOwner));
158 assert(NULL != thiz->mFile);
159 assert(0 != thiz->mLine);
165 SLuint32 objectID = IObjectToObjectID(thiz);
187 asynchronous &= ~(*handler)(thiz);
194 unsigned oldAttributesMask = thiz->mAttributesMask;
195 thiz->mAttributesMask = oldAttributesMask | asynchronous;
208 CAudioPlayer *ap = (CAudioPlayer *) thiz;
224 memset(&thiz->mOwner, 0, sizeof(pthread_t));
225 thiz->mFile = file;
226 thiz->mLine = line;
228 ok = pthread_mutex_unlock(&thiz->mMutex);
236 CAudioPlayer *ap = (CAudioPlayer *) thiz;
257 unsigned id = thiz->mInstanceID;
261 IEngine *thisEngine = &thiz->mEngine->mEngine;
275 void object_cond_wait_(IObject *thiz, const char *file, int line)
278 assert(pthread_equal(pthread_self(), thiz->mOwner));
279 assert(NULL != thiz->mFile);
280 assert(0 != thiz->mLine);
281 memset(&thiz->mOwner, 0, sizeof(pthread_t));
282 thiz->mFile = file;
283 thiz->mLine = line;
286 ok = pthread_cond_wait(&thiz->mCond, &thiz->mMutex);
289 thiz->mOwner = pthread_self();
290 thiz->mFile = file;
291 thiz->mLine = line;
294 void object_cond_wait(IObject *thiz)
297 ok = pthread_cond_wait(&thiz->mCond, &thiz->mMutex);
305 void object_cond_signal(IObject *thiz)
308 ok = pthread_cond_signal(&thiz->mCond);
317 void object_cond_broadcast(IObject *thiz)
320 ok = pthread_cond_broadcast(&thiz->mCond);