Home | History | Annotate | Download | only in src

Lines Matching refs:thiz

45 void object_lock_exclusive_(IObject *thiz, const char *file, int line)
48 ok = pthread_mutex_trylock(&thiz->mMutex);
51 int32_t oldGeneration = thiz->mGeneration;
60 ok = pthread_mutex_timedlock(&thiz->mMutex, &ts);
74 int32_t newGeneration = thiz->mGeneration;
84 pthread_t owner = thiz->mOwner;
88 " (tid %d) at %s:%d\n", file, line, *(void **)&me, gettid(), thiz,
89 *(void **)&owner, ownerTid, thiz->mFile, thiz->mLine);
93 ok = pthread_mutex_lock(&thiz->mMutex);
102 if (0 != memcmp(&zero, &thiz->mOwner, sizeof(pthread_t))) {
104 pthread_t owner = thiz->mOwner;
108 " %p (tid %d) at %s:%d\n", file, line, *(void **)&me, gettid(), thiz,
109 *(void **)&owner, ownerTid, thiz->mFile, thiz->mLine);
113 thiz, *(void **)&owner, ownerTid, thiz->mFile, thiz->mLine);
117 thiz->mOwner = pthread_self();
118 thiz->mFile = file;
119 thiz->mLine = line;
121 ++thiz->mGeneration;
124 void object_lock_exclusive(IObject *thiz)
127 ok = pthread_mutex_lock(&thiz->mMutex);
136 void object_unlock_exclusive_(IObject *thiz, const char *file, int line)
138 assert(pthread_equal(pthread_self(), thiz->mOwner));
139 assert(NULL != thiz->mFile);
140 assert(0 != thiz->mLine);
141 memset(&thiz->mOwner, 0, sizeof(pthread_t));
142 thiz->mFile = file;
143 thiz->mLine = line;
145 ok = pthread_mutex_unlock(&thiz->mMutex);
149 void object_unlock_exclusive(IObject *thiz)
152 ok = pthread_mutex_unlock(&thiz->mMutex);
163 void object_unlock_exclusive_attributes_(IObject *thiz, unsigned attributes,
166 void object_unlock_exclusive_attributes(IObject *thiz, unsigned attributes)
171 assert(pthread_equal(pthread_self(), thiz->mOwner));
172 assert(NULL != thiz->mFile);
173 assert(0 != thiz->mLine);
179 SLuint32 objectID = IObjectToObjectID(thiz);
201 asynchronous &= ~(*handler)(thiz);
208 unsigned oldAttributesMask = thiz->mAttributesMask;
209 thiz->mAttributesMask = oldAttributesMask | asynchronous;
222 CAudioPlayer *ap = (CAudioPlayer *) thiz;
238 memset(&thiz->mOwner, 0, sizeof(pthread_t));
239 thiz->mFile = file;
240 thiz->mLine = line;
242 ok = pthread_mutex_unlock(&thiz->mMutex);
250 CAudioPlayer *ap = (CAudioPlayer *) thiz;
271 unsigned id = thiz->mInstanceID;
275 IEngine *thisEngine = &thiz->mEngine->mEngine;
289 void object_cond_wait_(IObject *thiz, const char *file, int line)
292 assert(pthread_equal(pthread_self(), thiz->mOwner));
293 assert(NULL != thiz->mFile);
294 assert(0 != thiz->mLine);
295 memset(&thiz->mOwner, 0, sizeof(pthread_t));
296 thiz->mFile = file;
297 thiz->mLine = line;
300 ok = pthread_cond_wait(&thiz->mCond, &thiz->mMutex);
303 thiz->mOwner = pthread_self();
304 thiz->mFile = file;
305 thiz->mLine = line;
308 void object_cond_wait(IObject *thiz)
311 ok = pthread_cond_wait(&thiz->mCond, &thiz->mMutex);
319 void object_cond_signal(IObject *thiz)
322 ok = pthread_cond_signal(&thiz->mCond);
331 void object_cond_broadcast(IObject *thiz)
334 ok = pthread_cond_broadcast(&thiz->mCond);