diff options
author | 2012-03-16 22:18:39 -0700 | |
---|---|---|
committer | 2012-03-17 14:28:38 -0700 | |
commit | 0818b0921ef6cda07f41b56d2ef19b2849dfefd1 (patch) | |
tree | 03045f51fb101a838e3ccfa28c9ba8686f7558ce /libs/utils/Threads.cpp | |
parent | e6d77c593d1a25b45c23bf9292ec7ee09fc14b6e (diff) |
Add a simple work queue abstraction.
Makes it easy to schedule a bunch of work to happen in parallel.
Change-Id: Id9c0e52fc8b6d78d2b9ed4c2ee47abce0a01775c
Diffstat (limited to 'libs/utils/Threads.cpp')
-rw-r--r-- | libs/utils/Threads.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/utils/Threads.cpp b/libs/utils/Threads.cpp index ab207f5655..f9277de73b 100644 --- a/libs/utils/Threads.cpp +++ b/libs/utils/Threads.cpp @@ -323,6 +323,7 @@ pid_t androidGetTid() #endif } +#ifdef HAVE_ANDROID_OS int androidSetThreadSchedulingGroup(pid_t tid, int grp) { if (grp > ANDROID_TGROUP_MAX || grp < 0) { @@ -425,6 +426,7 @@ int androidGetThreadSchedulingGroup(pid_t tid) return ret; } +#endif namespace android { |