• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching refs:thiz

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