Show
Ignore:
Timestamp:
08/26/09 13:15:08 (5 years ago)
Author:
kazuho
Message:

number of worker threads configurable

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • platform/mysql/mycached/trunk/mycached.hh

    r35054 r35070  
    3434#include "sql_select.h" 
    3535 
    36 #define NUM_THREADS 4 
    3736#define MAX_FDS 11000 
    3837#define TIMEOUT_SECS 3600 
     
    185184    static void accept_conn(picoev_loop* loop, int fd, int, void* cb_arg); 
    186185    static void* event_loop(void* _thd); 
    187     static bool start_server(unsigned host, unsigned short port); 
     186    static bool start_server(unsigned host, unsigned short port, int num_threads); 
    188187    static bool stop_server(); 
    189188  };