diff options
| author | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:48 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:48 +0200 |
| commit | 4ecbf33fae730bc79c4a47e6efda615b104754ad (patch) | |
| tree | dd59412b6d8bea88995211f60b786728ac30acc4 /src/thrd/pool.h | |
| parent | bf5fc4cc4a15e8e57db58c2e065e0f5adbd8e800 (diff) | |
tagging ychat-0.7.8ychat-0.7.8
Diffstat (limited to 'src/thrd/pool.h')
| -rwxr-xr-x | src/thrd/pool.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/thrd/pool.h b/src/thrd/pool.h index 3a5f7b6..78c4163 100755 --- a/src/thrd/pool.h +++ b/src/thrd/pool.h @@ -7,11 +7,9 @@ using namespace std; -class pool +class pool { private: - friend class thro; - struct task { void(*p_func)(void*); @@ -22,7 +20,7 @@ private: this->p_func = p_func; this->p_void = p_void; } - }; + }; pthread_mutex_t mut_threads; pthread_mutex_t mut_queue_tasks; @@ -43,11 +41,10 @@ public: pool(); ~pool(); - void run(void* p_void); + void run(void* p_void); bool allow_user_login(); #ifdef NCURSES - void print_pool_size(); #endif }; |
