Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(726)

Side by Side Diff: third_party/libusb/src/libusb/os/poll_windows.c

Issue 10332075: Adding use_system_libusb option for third_party/libusb (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing license check. Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698