X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fpollable.cpp;fp=source%2Fpollable.cpp;h=0000000000000000000000000000000000000000;hp=4db38dd70ac222823b039ab466acd98a409fd595;hb=e1ea831a640fba534e7e42e399f04cdf681ef8d3;hpb=0bcb8d4d6f33cbdad7b921cac787740bfe8e212e diff --git a/source/pollable.cpp b/source/pollable.cpp deleted file mode 100644 index 4db38dd..0000000 --- a/source/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 -} - -}