MBOOL Pass2NodeImpl:: threadLoopUpdate() { MY_LOGV("+"); MBOOL ret = MTRUE; #if PASS2_CALLBACL_ENABLE ret = enquePass2(MTRUE); #else // use p2 thread to deque ret = dequePass2(); #endif MY_LOGV("-"); return ret; }
MBOOL Pass2NodeImpl:: onPostBuffer(MUINT32 const data, MUINT32 const buf, MUINT32 const ext) { #if PASS2_CALLBACL_ENABLE if( pushBuf(data, (IImageBuffer*)buf, ext) ) { // no thing } #else if( enquePass2(data,buf,ext) ) { triggerLoop(); } #endif //FUNC_END; return MTRUE; }
MBOOL StereoNodeImpl:: threadLoopUpdate() { PostBufInfo postBufData; { Mutex::Autolock lock(mLock); if( mlPostBufData.size() == 0 ) { MY_LOGE("no posted buf"); return MFALSE; } postBufData = mlPostBufData.front(); mlPostBufData.pop_front(); } // return enquePass2(postBufData.data, postBufData.buf, postBufData.ext); }