diff options
author | megamage <none@none> | 2009-02-12 17:09:15 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-02-12 17:09:15 -0600 |
commit | 6aee5fcbe7473a3cbac12b7e8482a7b98bef8be3 (patch) | |
tree | 91ec91d5c19eba9c2fe0e84b1c9dc7047a3de80e /dep/src/zthread/Scheduling.h | |
parent | 2d2f433b4de1c35b22aaf07854fc0ee11fcb350d (diff) | |
parent | f385747164c3fb278c92ef46fbd6c3da6590bbf0 (diff) |
*Merge.
--HG--
branch : trunk
Diffstat (limited to 'dep/src/zthread/Scheduling.h')
-rw-r--r-- | dep/src/zthread/Scheduling.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dep/src/zthread/Scheduling.h b/dep/src/zthread/Scheduling.h index b12f7fff0b6..00061341d62 100644 --- a/dep/src/zthread/Scheduling.h +++ b/dep/src/zthread/Scheduling.h @@ -52,7 +52,7 @@ namespace ZThread { * @struct priority_order */ struct priority_order : public std::binary_function<ThreadImpl*, ThreadImpl*, bool> { - + std::less<const ThreadImpl*> id; bool operator()(const ThreadImpl* t0, const ThreadImpl* t1) const { @@ -66,7 +66,7 @@ namespace ZThread { return id(t0, t1); } - + }; @@ -76,15 +76,15 @@ namespace ZThread { * @version 2.2.0 * @class priority_list */ - class priority_list : public std::deque<ThreadImpl*> { + class priority_list : public std::deque<ThreadImpl*> { priority_order comp; public: - void insert(const value_type& val) { + void insert(const value_type& val) { - push_back(val); + push_back(val); std::sort(begin(), end(), comp); } |