![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <threading.h>

Public Types | |
| enum | { STARTED_CALLBACK = INT_MIN , FINISHED_CALLBACK } |
Public Member Functions | |
| Thread () | |
| virtual | ~Thread ()=default |
| virtual void | Start () |
| virtual void | Stop () |
| virtual void | Pause () |
| virtual void | Resume () |
| virtual void | Wait () |
| bool | IsStarted () |
| bool | IsStopped () |
| bool | IsPaused () |
| bool | IsRunning () |
| bool | IsFinished () |
| void | BlockIfPaused () |
| bool | CheckValidSetup () |
| void | AddCallback (const int id, const std::function< void()> &func) |
| const Timer & | GetTimer () const |
Protected Member Functions | |
| virtual void | Run ()=0 |
| void | RegisterCallback (const int id) |
| void | Callback (const int id) const |
| std::thread::id | GetThreadId () const |
| void | SignalValidSetup () |
| void | SignalInvalidSetup () |
Definition at line 74 of file threading.h.
| anonymous enum |
| Enumerator | |
|---|---|
| STARTED_CALLBACK | |
| FINISHED_CALLBACK | |
Definition at line 76 of file threading.h.
| colmap::Thread::Thread | ( | ) |
Definition at line 38 of file threading.cc.
References FINISHED_CALLBACK, RegisterCallback(), and STARTED_CALLBACK.
|
virtualdefault |
| void colmap::Thread::AddCallback | ( | const int | id, |
| const std::function< void()> & | func | ||
| ) |
Definition at line 117 of file threading.cc.
Referenced by cloudViewer::AutomaticReconstructionWidget::Run(), colmap::AutomaticReconstructionWidget::Run(), and colmap::RunMapper().
| void colmap::Thread::BlockIfPaused | ( | ) |
Definition at line 156 of file threading.cc.
References colmap::Timer::Pause(), and colmap::Timer::Resume().
|
protected |
Definition at line 127 of file threading.cc.
References callback.
| bool colmap::Thread::CheckValidSetup | ( | ) |
Definition at line 167 of file threading.cc.
|
protected |
Definition at line 134 of file threading.cc.
| const class Timer & colmap::Thread::GetTimer | ( | ) | const |
Definition at line 154 of file threading.cc.
| bool colmap::Thread::IsFinished | ( | ) |
Definition at line 112 of file threading.cc.
| bool colmap::Thread::IsPaused | ( | ) |
Definition at line 102 of file threading.cc.
| bool colmap::Thread::IsRunning | ( | ) |
Definition at line 107 of file threading.cc.
| bool colmap::Thread::IsStarted | ( | ) |
Definition at line 92 of file threading.cc.
| bool colmap::Thread::IsStopped | ( | ) |
Definition at line 97 of file threading.cc.
Referenced by colmap::SiftCPUFeatureMatcher::Run(), colmap::SiftGPUFeatureMatcher::Run(), colmap::TwoViewGeometryVerifier::Run(), and colmap::AutomaticReconstructionController::RunDenseMapper().
|
virtual |
Definition at line 73 of file threading.cc.
|
protected |
Definition at line 123 of file threading.cc.
Referenced by Thread().
|
virtual |
Definition at line 78 of file threading.cc.
Referenced by Stop().
|
protectedpure virtual |
Implemented in colmap::TwoViewGeometryVerifier, colmap::SiftGPUFeatureMatcher, and colmap::SiftCPUFeatureMatcher.
|
protected |
Definition at line 146 of file threading.cc.
Referenced by colmap::SiftGPUFeatureMatcher::Run().
|
protected |
Definition at line 138 of file threading.cc.
Referenced by colmap::SiftCPUFeatureMatcher::Run(), and colmap::SiftGPUFeatureMatcher::Run().
|
virtual |
Definition at line 50 of file threading.cc.
References colmap::Timer::Restart(), and Wait().
Referenced by colmap::RunAutomaticReconstructor(), colmap::RunBundleAdjuster(), colmap::AutomaticReconstructionController::RunDenseMapper(), colmap::RunExhaustiveMatcher(), colmap::RunFeatureExtractor(), colmap::RunFeatureImporter(), colmap::RunHierarchicalMapper(), colmap::RunImageRectifier(), colmap::RunImageTexturer(), colmap::RunMapper(), colmap::RunPatchMatchStereo(), colmap::RunSequentialMatcher(), colmap::RunSpatialMatcher(), colmap::RunStereoFuser(), colmap::RunTransitiveMatcher(), and colmap::RunVocabTreeMatcher().
|
virtual |
Reimplemented in colmap::AutomaticReconstructionController.
Definition at line 65 of file threading.cc.
References Resume().
Referenced by colmap::AutomaticReconstructionController::Stop().
|
virtual |
Definition at line 86 of file threading.cc.
Referenced by colmap::RunAutomaticReconstructor(), colmap::RunBundleAdjuster(), colmap::AutomaticReconstructionController::RunDenseMapper(), colmap::RunExhaustiveMatcher(), colmap::RunFeatureExtractor(), colmap::RunFeatureImporter(), colmap::RunHierarchicalMapper(), colmap::RunImageRectifier(), colmap::RunImageTexturer(), colmap::RunMapper(), colmap::RunPatchMatchStereo(), colmap::RunSequentialMatcher(), colmap::RunSpatialMatcher(), colmap::RunStereoFuser(), colmap::RunTransitiveMatcher(), colmap::RunVocabTreeMatcher(), and Start().