X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fpollable.cpp;fp=source%2Fcore%2Fpollable.cpp;h=0000000000000000000000000000000000000000;hb=fe77fc6b869a71bf94d501a0762579f4ddbc5094;hp=4db38dd70ac222823b039ab466acd98a409fd595;hpb=7292f4413397b7f2e4689f7597f4b9e73435352e;p=libs%2Fcore.git diff --git a/source/core/pollable.cpp b/source/core/pollable.cpp deleted file mode 100644 index 4db38dd..0000000 --- a/source/core/pollable.cpp +++ /dev/null @@ -1,29 +0,0 @@ -/* -This file is part of libmspframework -Copyright © 2006 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ -#ifdef WIN32 -#include -#include "win32poll.h" -#else -#include -#endif -#include "pollable.h" - -namespace Msp { - -short Pollable::poll(short events, int timeout) -{ -#ifdef WIN32 - return 0; -#else - pollfd pfd={get_fd(), events, 0}; - int result=::poll(&pfd, 1, timeout); - if(result<=0) - return result; - return pfd.revents; -#endif -} - -}