|
Open3D (C++ API)
0.19.0
|
#include <Task.h>
Data Structures | |
| struct | Impl |
Public Member Functions | |
| Task (std::function< void()> f) | |
| Task (const Task &)=delete | |
| Task & | operator= (const Task &other)=delete |
| ~Task () | |
| Will call WaitToFinish(), which may block. | |
| void | Run () |
| bool | IsFinished () const |
| void | WaitToFinish () |
| open3d::visualization::gui::Task::Task | ( | std::function< void()> | f | ) |
Runs
| f | in another thread. f may want to call Application::PostToMainThread() to communicate the results. |
|
delete |
| open3d::visualization::gui::Task::~Task | ( | ) |
Will call WaitToFinish(), which may block.
| bool open3d::visualization::gui::Task::IsFinished | ( | ) | const |
| void open3d::visualization::gui::Task::Run | ( | ) |
| void open3d::visualization::gui::Task::WaitToFinish | ( | ) |
This must be called for all tasks eventually or the process will not exit.