Mercurial > hg > graal-compiler
comparison src/share/vm/utilities/yieldingWorkgroup.hpp @ 360:5d254928c888
Merge
author | ysr |
---|---|
date | Wed, 27 Aug 2008 11:20:46 -0700 |
parents | 37f87013dfd8 |
children | c18cbe5936b8 |
comparison
equal
deleted
inserted
replaced
341:d60e4e6d7f72 | 360:5d254928c888 |
---|---|
141 // being the thread that orchestrates the WorkGang via run_task(). | 141 // being the thread that orchestrates the WorkGang via run_task(). |
142 class YieldingFlexibleWorkGang: public AbstractWorkGang { | 142 class YieldingFlexibleWorkGang: public AbstractWorkGang { |
143 // Here's the public interface to this class. | 143 // Here's the public interface to this class. |
144 public: | 144 public: |
145 // Constructor and destructor. | 145 // Constructor and destructor. |
146 YieldingFlexibleWorkGang(const char* name, int workers, bool are_GC_threads); | 146 YieldingFlexibleWorkGang(const char* name, int workers, |
147 bool are_GC_task_threads); | |
147 | 148 |
148 YieldingFlexibleGangTask* yielding_task() const { | 149 YieldingFlexibleGangTask* yielding_task() const { |
149 assert(task() == NULL || task()->is_YieldingFlexibleGang_task(), | 150 assert(task() == NULL || task()->is_YieldingFlexibleGang_task(), |
150 "Incorrect cast"); | 151 "Incorrect cast"); |
151 return (YieldingFlexibleGangTask*)task(); | 152 return (YieldingFlexibleGangTask*)task(); |