commit | 51e6cb33e3d7c2f44864d356a2a8e66317688f55 | [log] [tgz] |
---|---|---|
author | Narayan Kamath <narayan@google.com> | Mon Mar 03 15:38:51 2014 +0000 |
committer | Narayan Kamath <narayan@google.com> | Tue Mar 04 11:17:13 2014 +0000 |
tree | 48863111f16d659bbc0456662d67f5fc8ff3bef2 | |
parent | 2c7c79e6e5e730553281b6d42e734ee2c532a660 [diff] |
Implement pthread_condattr_{get,set}clock. We only support CLOCK_REALTIME and CLOCK_MONOTONIC for now, so we us a single bit from pthread_cond_t->value to denote the clock type. Note that this reduces the width of the counter to 30 bits, but this should be large enough for all practical purposes. bug: 13232338 Change-Id: I857e7da64b3ecbb23eeac7c9f3fbd460f60231bd