SynchronizationHelpers.kl

Types

ActiveWaitLoopControl (struct)

Members

Float32 activeWaitTimeSlice  
Float32 activeWaitTimeBeforeSleep  
Float32 debugDeadlockSecondsBeforeDumpStack  
UInt8 waitMS  
Boolean deadlockDumpedStack  
UInt64 startTick  

Methods

  ActiveWaitLoopControl ( in ActiveWaitLoopControl other )
  ActiveWaitLoopControl ()
ActiveWaitLoopControl clone ? ()
Float32 getWaitTime ? ()
  setPriority ! ( in Boolean high )
  wait ! ()

Functions

AtomicSet

AtomicSet ( io UInt32 value, in UInt32 newValue )

ThreadSafeSet

ThreadSafeSet ( io UInt32 value, in UInt32 newValue, in Boolean threadsafe )

AtomicSet

AtomicSet ( io UInt32 value, in UInt32 newValue )

ThreadSafeSet

ThreadSafeSet ( io UInt32 value, in UInt32 newValue, in Boolean threadsafe )

ThreadSafeInc

ThreadSafeInc ( io UInt32 value, in Boolean threadsafe )

ThreadSafeSetFlag

ThreadSafeSetFlag ( io UInt32 val, in UInt8 flag, in Boolean threadsafe )

ThreadSafeClearFlag

ThreadSafeClearFlag ( io UInt32 val, in UInt8 flag, in Boolean threadsafe )

ActiveWait

ActiveWait ( in Scalar seconds )

Helper function for waiting actively during a specific timelapse.

MicroSleepWait

MicroSleepWait ( in UInt32 ms )

SimpleAcquire

SimpleAcquire ( io UInt32 lockVariable )

TryAcquire

Boolean TryAcquire ( in Ref<SimpleLock> simpleLock, in Scalar maxWaitSeconds )

Tries to acquire a lock for maxWaitSeconds seconds. Will return false if failed.

SimpleRelease

SimpleRelease ( io UInt32 lockVariable )