- 18 May, 2016 1 commit
-
-
Josh Gao authored
Our version of mingw doesn't support std::mutex or std::recursive_mutex, so implement our own using the Windows primitives. Bug: http://b/28347842 Change-Id: I4e1d56a89bc5fcb5f859bf5014343697a4a85b77
-
- 26 Apr, 2016 1 commit
-
-
Josh Gao authored
Default limit is 1024 fds, which means 512 socketpairs will hit the limit. Bug: http://b/28386497 Change-Id: Ib36404c050e4be3db51378e250f300f7ec5aab13
-
- 18 Apr, 2016 1 commit
-
-
Josh Gao authored
128 maximum FDs is a pretty low limit, which can easily be exhausted by port forwarding. Bump the maximum up to 2048, and add a test that checks whether we can actually use a few hundred sockets. Bug: https://code.google.com/p/android/issues/detail?id=12141 Bug: http://b/28246942 Change-Id: Ia4a2ff776e8e58ec13378756f19d80392679ece9
-
- 20 Feb, 2016 1 commit
-
-
Josh Gao authored
Make sure that adb_poll sets revents for all of the structs passed in. Also, zero initialize all of the adb_pollfd structs in the tests. Change-Id: Ia639679a7e6f77483655f1552e89081c4673aa87
-
- 19 Feb, 2016 3 commits
-
-
Josh Gao authored
Avoid leaking a thread and its associated resources when a user cancels wait-for-device. Bug: http://b/26966721 Bug: https://code.google.com/p/android/issues/detail?id=199088 Change-Id: Idac80a24e9739ddd24e500fe14826a78f350c018
-
Josh Gao authored
Add a test for FD exhaustion, and fix cases where we weren't properly setting errno. Change-Id: I486055bb9ead31089ce76b210c11de9e973f3256
-
Josh Gao authored
Change-Id: I16cf7d4427eb79f36db39e91f85402a268fa72f5
-
- 12 Feb, 2016 2 commits
-
-
Josh Gao authored
Windows restricts the return value of threads to 32-bits, even on 64-bit platforms. Since we don't actually return meaningful values from thread, resolve this inconsistency with POSIX by making adb's thread abstraction only take void functions. Change-Id: I5c23b4432314f13bf16d606fd5e6b6b7b6ef98b5
-
Josh Gao authored
Change-Id: Ic6744cc7c858576d7e6172460b32902e007b6fd3
-
- 10 Feb, 2016 1 commit
-
-
Josh Gao authored
Bug: http://b/27105824 Change-Id: I44e4edbb2a59565c35f1f3e6a6394ac258591f95
-