15 #include <vsg/threading/OperationQueue.h>
37 using container_type = std::list<value_type>;
60 mutable std::mutex _updateOperationMutex;
61 std::list<ref_ptr<Operation>> _updateOperationsOneTime;
62 std::list<ref_ptr<Operation>> _updateOperationsAllFrames;
class for managing thread safe adding and running of update operations
Definition: UpdateOperations.h:25
void clear()
clear all update operations
container_type getUpdateOperationsOneTime() const
get a copy of all current one time updated operations
virtual void remove(ref_ptr< Operation > op)
remove operation
RunBehavior
specification of whether update operation should be invoked once or on all frames
Definition: UpdateOperations.h:31
virtual void add(ref_ptr< Operation > op, RunBehavior runBehavior=ONE_TIME)
add operation
container_type getUpdateOperationsAllFrames() const
get a copy of all current all frames updated operations
virtual void run()
run is invoked by Viewer::update()