Changeset 361

Show
Ignore:
Timestamp:
06/06/07 23:39:44 (2 years ago)
Author:
blackhedd
Message:

added support for setting descriptor-table limits, and temporary support for epoll.
The way we specify epoll is subject to change.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • version_0/ext/cmain.cpp

    r347 r361  
    2222 
    2323static EventMachine_t *EventMachine; 
     24static int bUseEpoll = 0; 
    2425 
    2526 
     
    3637                throw std::runtime_error ("already initialized"); 
    3738        EventMachine = new EventMachine_t (cb); 
     39        if (bUseEpoll) 
     40                EventMachine->_UseEpoll(); 
    3841} 
    3942 
     
    317320 
    318321 
     322/*********** 
     323evma__epoll 
     324***********/ 
     325 
     326extern "C" void evma__epoll() 
     327{ 
     328        bUseEpoll = 1; 
     329} 
     330 
     331 
     332/********************** 
     333evma_set_rlimit_nofile 
     334**********************/ 
     335 
     336extern "C" int evma_set_rlimit_nofile (int nofiles) 
     337{ 
     338        return EventMachine_t::SetRlimitNofile (nofiles); 
     339} 
     340 
     341 
     342 
     343 
     344 
     345