ThingWorx C SDK
Public Attributes | List of all members
twThread Struct Reference

twThread structure definition. More...

#include <twThreads.h>

Public Attributes

TW_THREAD_ID id
 
twTaskFunction func
 
uint32_t rate
 
char isRunning
 
char isPaused
 
char shutdownRequested
 
char hasStopped
 
void * opaquePtr
 

Detailed Description

twThread structure definition.

Note
This is a very simple threading facility designed to allow the use to execute twTaskFunctions to be run in separate threads rather than using the built-in tasker

Member Data Documentation

twTaskFunction twThread::func

Thread task function.

char twThread::hasStopped

#TRUE if the thread has stopped. #FALSE otherwise.

TW_THREAD_ID twThread::id

ID of the thread.

char twThread::isPaused

#TRUE if the thread is paused. #FALSE otherwise.

char twThread::isRunning

#TRUE if the thread is running. #FALSE otherwise.

void* twThread::opaquePtr

An opaque pointer passed into the thread for any user purpose.

uint32_t twThread::rate

TBD

char twThread::shutdownRequested

#TRUE if a shut down is requested. #FALSE otherwise.


The documentation for this struct was generated from the following file: