src/share/vm/runtime/os.hpp

Print this page

        

*** 448,459 **** YIELD_UNKNOWN = -1 // Unknown: platform doesn't support _SWITCHED or _NONEREADY // YIELD_SWITCHED and YIELD_NONREADY imply the platform supports a "strong" // yield that can be used in lieu of blocking. } ; static YieldResult NakedYield () ; ! static void yield_all(int attempts = 0); // Yields to all other threads including lower priority ! static void loop_breaker(int attempts); // called from within tight loops to possibly influence time-sharing static OSReturn set_priority(Thread* thread, ThreadPriority priority); static OSReturn get_priority(const Thread* const thread, ThreadPriority& priority); static void interrupt(Thread* thread); static bool is_interrupted(Thread* thread, bool clear_interrupted); --- 448,459 ---- YIELD_UNKNOWN = -1 // Unknown: platform doesn't support _SWITCHED or _NONEREADY // YIELD_SWITCHED and YIELD_NONREADY imply the platform supports a "strong" // yield that can be used in lieu of blocking. } ; static YieldResult NakedYield () ; ! static void yield_all(); // Yields to all other threads including lower priority ! // (for the default scheduling policy) static OSReturn set_priority(Thread* thread, ThreadPriority priority); static OSReturn get_priority(const Thread* const thread, ThreadPriority& priority); static void interrupt(Thread* thread); static bool is_interrupted(Thread* thread, bool clear_interrupted);