commit | fd22b3e5ad1aae1fc3de54801f33466db3c9b3fe | [log] [tgz] |
---|---|---|
author | Alex Vakulenko <avakulenko@google.com> | Tue Apr 18 14:41:33 2017 -0700 |
committer | Alex Vakulenko <avakulenko@google.com> | Wed Apr 19 12:30:12 2017 -0700 |
tree | 195ca2c2ee509dce7e670f67b35afe47d217f4a0 | |
parent | 6eefa42d33bdddc3603211634f98937b00abc532 [diff] |
libpdx_uds: Serialize access to connection socket between threads Added a mutex to allow only one client thread to perform atomic send-request/receive-responce actions. Also added a unit test that perfroms multiple parallel client requests to the same service to ensure it can handle multithreaded access correctly. Bug: 37443070 Test: `libpdx_uds_tests` pass Change-Id: Ica516f7806f9146fb530b5cb371d2ee89146fed7