OLD | NEW |
1 /* | 1 /* |
2 * poll_windows: poll compatibility wrapper for Windows | 2 * poll_windows: poll compatibility wrapper for Windows |
3 * Copyright (C) 2009-2010 Pete Batard <pbatard@gmail.com> | 3 * Copyright (C) 2009-2010 Pete Batard <pbatard@gmail.com> |
4 * With contributions from Michael Plante, Orin Eman et al. | 4 * With contributions from Michael Plante, Orin Eman et al. |
5 * Parts of poll implementation from libusb-win32, by Stephan Meyer et al. | 5 * Parts of poll implementation from libusb-win32, by Stephan Meyer et al. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Lesser General Public | 8 * modify it under the terms of the GNU Lesser General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2.1 of the License, or (at your option) any later version. | 10 * version 2.1 of the License, or (at your option) any later version. |
(...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
830 ResetEvent(poll_fd[_index].overlapped->hEvent); | 830 ResetEvent(poll_fd[_index].overlapped->hEvent); |
831 poll_fd[_index].overlapped->Internal = STATUS_PENDING; | 831 poll_fd[_index].overlapped->Internal = STATUS_PENDING; |
832 } | 832 } |
833 | 833 |
834 r = sizeof(unsigned char); | 834 r = sizeof(unsigned char); |
835 | 835 |
836 out: | 836 out: |
837 LeaveCriticalSection(&_poll_fd[_index].mutex); | 837 LeaveCriticalSection(&_poll_fd[_index].mutex); |
838 return r; | 838 return r; |
839 } | 839 } |
OLD | NEW |