added: gc for sessions (another thread)

git-svn-id: svn://ttmath.org/publicrep/winix/trunk@693 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2010-12-07 12:52:52 +00:00
parent 7f77b6e3ec
commit 0a9cdd2f15
16 changed files with 434 additions and 393 deletions

View File

@@ -39,7 +39,7 @@ public:
void Init();
void StartThread();
void SendSignalToThread(); // use it in lock/unlock
void PrepareToStopThread();
void WaitForThread();
size_t AddTemplate(const std::wstring & file_name);
@@ -60,9 +60,6 @@ private:
NotifyMsg msg;
NotifyPool notify_pool;
// conditional variable
pthread_cond_t thread_signal;
size_t notify_template_cms;
size_t notify_template_thread;