comparison OrthancServer/LuaScripting.h @ 2618:ef5b45884972 jobs

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 22 May 2018 12:59:38 +0200
parents 912a767911b0
children 1da5a052c777
comparison
equal deleted inserted replaced
2617:912a767911b0 2618:ef5b45884972
68 68
69 void InitializeJob(); 69 void InitializeJob();
70 70
71 void SubmitJob(); 71 void SubmitJob();
72 72
73 boost::mutex mutex_; 73 boost::recursive_mutex mutex_;
74 LuaContext lua_; 74 LuaContext lua_;
75 ServerContext& context_; 75 ServerContext& context_;
76 LuaJobManager jobManager_; 76 LuaJobManager jobManager_;
77 bool continue_; 77 bool continue_;
78 boost::thread eventThread_; 78 boost::thread eventThread_;
79 SharedMessageQueue pendingEvents_; 79 SharedMessageQueue pendingEvents_;
80 80
81 static void EventThread(LuaScripting* that); 81 static void EventThread(LuaScripting* that);
82 82
83 public: 83 public:
84 class Lock : public boost::noncopyable 84 class Lock : public boost::noncopyable
85 { 85 {
86 private: 86 private:
87 LuaScripting& that_; 87 LuaScripting& that_;
88 boost::mutex::scoped_lock lock_; 88 boost::recursive_mutex::scoped_lock lock_;
89 89
90 public: 90 public:
91 explicit Lock(LuaScripting& that) : 91 explicit Lock(LuaScripting& that) :
92 that_(that), 92 that_(that),
93 lock_(that.mutex_) 93 lock_(that.mutex_)