Home
last modified time | relevance | path

Searched refs:writerThreadInfo (Results 1 – 8 of 8) sorted by relevance

/ohos5.0/base/update/updater/services/applypatch/
H A Dcommand_process.cpp48 auto writerThreadInfo = params.GetTransferParams()->writerThreadInfo.get(); in Execute() local
49 pthread_mutex_lock(&writerThreadInfo->mutex); in Execute()
51 pthread_cond_broadcast(&writerThreadInfo->cond); in Execute()
52 while (writerThreadInfo->writer != nullptr) { in Execute()
54 if (!writerThreadInfo->readyToWrite) { in Execute()
57 pthread_mutex_unlock(&writerThreadInfo->mutex); in Execute()
58 writerThreadInfo->writer.reset(); in Execute()
59 writerThreadInfo->writer = nullptr; in Execute()
63 pthread_cond_wait(&writerThreadInfo->cond, &writerThreadInfo->mutex); in Execute()
65 pthread_mutex_unlock(&writerThreadInfo->mutex); in Execute()
[all …]
H A Dtransfer_manager.cpp33 transferParams_->writerThreadInfo = std::make_unique<WriterThreadInfo>(); in TransferManager()
/ohos5.0/base/update/updater/services/diffpatch/patch_shared/
H A Dpatch_shared.cpp132 auto writerThreadInfo = transferParams->writerThreadInfo.get(); in ExecuteTransferCommand() local
146 pthread_mutex_lock(&writerThreadInfo->mutex); in ExecuteTransferCommand()
147 if (writerThreadInfo->readyToWrite) { in ExecuteTransferCommand()
151 writerThreadInfo->readyToWrite = false; in ExecuteTransferCommand()
152 pthread_cond_broadcast(&writerThreadInfo->cond); in ExecuteTransferCommand()
153 pthread_mutex_unlock(&writerThreadInfo->mutex); in ExecuteTransferCommand()
277 auto writerThreadInfo = transferParams->writerThreadInfo.get(); in InitThread() local
278 writerThreadInfo->readyToWrite = true; in InitThread()
279 pthread_mutex_init(&writerThreadInfo->mutex, nullptr); in InitThread()
280 pthread_cond_init(&writerThreadInfo->cond, nullptr); in InitThread()
[all …]
/ohos5.0/base/update/updater/services/updater_binary/
H A Dupdate_image_block.cpp192 auto writerThreadInfo = transferParams->writerThreadInfo.get(); in ExecuteTransferCommand() local
208 pthread_mutex_lock(&writerThreadInfo->mutex); in ExecuteTransferCommand()
209 if (writerThreadInfo->readyToWrite) { in ExecuteTransferCommand()
213 writerThreadInfo->readyToWrite = false; in ExecuteTransferCommand()
214 pthread_cond_broadcast(&writerThreadInfo->cond); in ExecuteTransferCommand()
215 pthread_mutex_unlock(&writerThreadInfo->mutex); in ExecuteTransferCommand()
231 auto writerThreadInfo = transferParams->writerThreadInfo.get(); in InitThread() local
232 writerThreadInfo->readyToWrite = true; in InitThread()
233 pthread_mutex_init(&writerThreadInfo->mutex, nullptr); in InitThread()
234 pthread_cond_init(&writerThreadInfo->cond, nullptr); in InitThread()
[all …]
/ohos5.0/base/update/updater/test/unittest/applypatch_test/
H A Dcommands_unittest.cpp58 transferParams->writerThreadInfo = std::make_unique<WriterThreadInfo>();
76 transferParams->writerThreadInfo = std::make_unique<WriterThreadInfo>();
H A Dcommandsfunction_unittest.cpp65 transferParams->writerThreadInfo = std::make_unique<WriterThreadInfo>();
H A Dblockset_unittest.cpp124 transferParams->writerThreadInfo = std::make_unique<WriterThreadInfo>();
/ohos5.0/base/update/updater/services/include/applypatch/
H A Dtransfer_manager.h49 std::unique_ptr<WriterThreadInfo> writerThreadInfo; member