Skip to content

Commit

Permalink
Define default poller
Browse files Browse the repository at this point in the history
  • Loading branch information
resetius committed Nov 30, 2023
1 parent fe842ee commit a893a91
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion coroio/all.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,12 @@
#include "promises.hpp"
#include "socket.hpp"
#include "corochain.hpp"
#include "sockutils.hpp"
#include "sockutils.hpp"

#if defined(__APPLE__) || defined(__FreeBSD__)
using TDefaultPoller = NNet::TKqueue;
#elif defined(__linux__)
using TDefaultPoller = NNet::TEPoll;
#else
using TDefaultPoller = NNet::TPoll;
#endif

0 comments on commit a893a91

Please sign in to comment.