Open Search
    CpuYieldState Class Reference

    #include <cpuyield.h>

    Inheritance diagram for CpuYieldState:

    Public Types

    using SwitchDelegate = void(*)(CpuYieldState *state, const void *resource)
     

    Public Attributes

    Int32 _count
     
    Int32 _loopSize
     
    const void * _resource
     

    Static Public Attributes

    static const Int LOOPS_START_COUNT
     
    static const Int LOOPS_MAX_GRANULARITY
     
    static const Int LOOPS_BEFORE_YIELD
     
    static const Int LOOPS_BEFORE_SLEEP
     
    static const UInt LOCK_ACQUIRE
     
    static const UInt LOCK_SPIN
     
    static const UInt LOCK_RELEASE
     
    static const UInt MAX_STATE_ENUM
     

    Member Typedef Documentation

    ◆ SwitchDelegate

    using SwitchDelegate = void (*)(CpuYieldState* state, const void* resource)

    Member Data Documentation

    ◆ LOOPS_START_COUNT

    const Int LOOPS_START_COUNT
    static

    ◆ LOOPS_MAX_GRANULARITY

    const Int LOOPS_MAX_GRANULARITY
    static

    ◆ LOOPS_BEFORE_YIELD

    const Int LOOPS_BEFORE_YIELD
    static

    ◆ LOOPS_BEFORE_SLEEP

    const Int LOOPS_BEFORE_SLEEP
    static

    ◆ LOCK_ACQUIRE

    const UInt LOCK_ACQUIRE
    static

    ◆ LOCK_SPIN

    const UInt LOCK_SPIN
    static

    ◆ LOCK_RELEASE

    const UInt LOCK_RELEASE
    static

    ◆ MAX_STATE_ENUM

    const UInt MAX_STATE_ENUM
    static

    ◆ _count

    Int32 _count

    ◆ _loopSize

    Int32 _loopSize

    ◆ _resource

    const void* _resource