Torque3D Documentation / _generateds / AsyncUpdateList

AsyncUpdateList

Engine/source/platform/async/asyncUpdate.h

This structure keeps track of the objects that need updating.

More...

Protected Types

UpdateList 

Protected Attributes

List of structures currently in the update loop.

Public Functions

add(IPolled * ptr)

Add the structure to the update list.

process(S32 timeOut)

Update the structures currently on the processing list.

Detailed Description

This structure keeps track of the objects that need updating.

Protected Types

typedef ThreadSafeDeque< IPolled * > UpdateList 

Protected Attributes

UpdateList mUpdateList 

List of structures currently in the update loop.

Public Functions

~AsyncUpdateList()

add(IPolled * ptr)

Add the structure to the update list.

It will stay on this list, until its update() method returns false.

note:

This can be called on different threads.

process(S32 timeOut)

Update the structures currently on the processing list.

Parameters:

timeOut

Soft limit in milliseconds on the time spent on flushing the list. Default of -1 means no limit and function will only return, if update list has been fully flushed.