Lines Matching refs:thisEngine
551 IEngine *thisEngine = &thiz->mEngine->mEngine;
555 if (thisEngine->mThis != thiz) {
556 interface_lock_exclusive(thisEngine);
559 assert(0 < thisEngine->mInstanceCount);
560 --thisEngine->mInstanceCount;
565 assert(thisEngine->mInstanceMask & mask);
566 thisEngine->mInstanceMask &= ~mask;
567 assert(thisEngine->mInstances[i] == thiz);
568 thisEngine->mInstances[i] = NULL;
571 if (thisEngine->mThis != thiz) {
572 interface_unlock_exclusive(thisEngine);
812 IEngine *thisEngine = &thiz->mEngine->mEngine;
813 interface_lock_exclusive(thisEngine);
815 unsigned availMask = ~thisEngine->mInstanceMask;
819 assert(NULL == thisEngine->mInstances[i]);
820 thisEngine->mInstances[i] = thiz;
821 thisEngine->mInstanceMask |= 1 << i;
824 interface_unlock_exclusive(thisEngine);