18 #ifndef PIC_UTIL_GL_BUFFER_OPS_HPP 19 #define PIC_UTIL_GL_BUFFER_OPS_HPP 26 #include "../../base.hpp" 28 #include "../../util/gl/buffer_op.hpp" 53 std::thread::id this_id = std::this_thread::get_id();
56 std::lock_guard<std::mutex> lock(mutex);
58 if(buffer_ops_gl[this_id] == NULL) {
64 return buffer_ops_gl[this_id];
72 static std::mutex mutex;
73 static std::map<std::thread::id, bool> flag;
74 static std::map<std::thread::id, BufferOpsGL*> buffer_ops_gl;
104 std::mutex BufferOpsGL::mutex;
106 std::map<std::thread::id, bool> BufferOpsGL::flag;
108 std::map<std::thread::id, BufferOpsGL*> BufferOpsGL::buffer_ops_gl;
The BufferOpGL class.
Definition: buffer_op.hpp:34
Definition: buffer_ops.hpp:35
Definition: buffer_ops.hpp:34
static BufferOpsGL * getInstance()
getInstance
Definition: buffer_ops.hpp:51
Definition: buffer_ops.hpp:32
Definition: buffer_ops.hpp:34
Definition: buffer_ops.hpp:33
BufferOperatorsGL list
Definition: buffer_ops.hpp:45
Definition: buffer_ops.hpp:35
BOGL
Definition: buffer_ops.hpp:32
Definition: buffer_ops.hpp:34
Definition: buffer_ops.hpp:33
Definition: buffer_ops.hpp:35
Definition: buffer_ops.hpp:33
Definition: buffer_ops.hpp:32
Definition: buffer_ops.hpp:34
The BufferOpsGL class.
Definition: buffer_ops.hpp:42
Definition: bilateral_separation.hpp:25
Definition: buffer_ops.hpp:33
Definition: buffer_ops.hpp:32
Definition: buffer_ops.hpp:32
std::vector< BufferOpGL * > BufferOperatorsGL
Definition: buffer_ops.hpp:37
~BufferOpsGL()
Definition: buffer_ops.hpp:67