#include <SysActivity.hpp>
Public Member Functions | |
| SysActivity () | |
| bool | equals (thread_id_t t) |
| void | create (RexxActivity *activity, size_t stackSize) |
| void | close () |
| void | useCurrentThread () |
| char * | getStackBase (int32_t *base, size_t stackSize) |
| void | setPriority (int p) |
| bool | validateThread () |
| thread_id_t | getThreadID () |
| SysActivity () | |
| bool | equals (thread_id_t t) |
| void | create (RexxActivity *activity, size_t stackSize) |
| void | close () |
| void | useCurrentThread () |
| bool | validateThread () |
| char * | getStackBase (int32_t *base, size_t stackSize) |
| thread_id_t | getThreadID () |
Static Public Member Functions | |
| static thread_id_t | queryThreadID () |
| static void | yield () |
| static wholenumber_t | yieldCounter () |
| static thread_id_t | queryThreadID () |
| static void | yield () |
| static wholenumber_t | yieldCounter () |
Protected Attributes | |
| pthread_t | threadId |
| thread_id_t | threadId |
| HANDLE | hThread |
Definition at line 73 of file unix/SysActivity.hpp.
|
inline |
Definition at line 76 of file unix/SysActivity.hpp.
|
inline |
Definition at line 58 of file windows/SysActivity.hpp.
| void SysActivity::close | ( | ) |
Close out any resources required by this thread descriptor.
Definition at line 69 of file unix/SysActivity.cpp.
References threadId.
Referenced by RexxActivity::cleanupActivityResources().
| void SysActivity::close | ( | ) |
| void SysActivity::create | ( | RexxActivity * | activity, |
| size_t | stackSize | ||
| ) |
Create a new thread for an activity.
| activity | The activity that will run on this thread. |
| stackSize | The desired stack size. |
Create a real thread for the activity holding this item.
| activity | The activity we're creating on. |
| stackSize | The required stack size. |
Definition at line 80 of file unix/SysActivity.cpp.
References Error_System_service_service, reportException(), threadFnc(), and threadId.
Referenced by RexxActivity::RexxActivity().
| void SysActivity::create | ( | RexxActivity * | activity, |
| size_t | stackSize | ||
| ) |
|
inline |
Definition at line 77 of file unix/SysActivity.hpp.
References threadId.
Referenced by RexxActivity::isThread().
|
inline |
Definition at line 59 of file windows/SysActivity.hpp.
References threadId.
| char * SysActivity::getStackBase | ( | int32_t * | base, |
| size_t | stackSize | ||
| ) |
Return the pointer to the base of the current stack. This is used for checking recursion overflows.
| base | A local variable at the base of the stack. |
| stackSize |
Definition at line 166 of file unix/SysActivity.cpp.
Referenced by RexxActivity::RexxActivity(), RexxActivity::run(), and RexxActivity::runThread().
| char* SysActivity::getStackBase | ( | int32_t * | base, |
| size_t | stackSize | ||
| ) |
|
inline |
Definition at line 84 of file unix/SysActivity.hpp.
References threadId.
Referenced by RexxActivity::threadIdMethod().
|
inline |
Definition at line 65 of file windows/SysActivity.hpp.
References threadId.
|
static |
Get the ID of the current thread.
Definition at line 127 of file unix/SysActivity.cpp.
Referenced by ActivityManager::findActivity(), and InterpreterInstance::findActivity().
|
static |
| void SysActivity::setPriority | ( | int | p | ) |
| void SysActivity::useCurrentThread | ( | ) |
Initialize the descriptor for manipulating the current active thread.
Definition at line 150 of file unix/SysActivity.cpp.
References threadId.
Referenced by RexxActivity::RexxActivity().
| void SysActivity::useCurrentThread | ( | ) |
| bool SysActivity::validateThread | ( | ) |
Check if this activity is getting used on the correct thread.
Definition at line 140 of file unix/SysActivity.cpp.
References threadId.
Referenced by RexxActivity::validateThread().
| bool SysActivity::validateThread | ( | ) |
|
static |
Definition at line 174 of file unix/SysActivity.cpp.
References yieldCount.
Referenced by ActivityManager::addWaitingActivity(), and RexxActivity::run().
|
static |
|
static |
Definition at line 181 of file unix/SysActivity.cpp.
References yieldCount.
Referenced by ActivityManager::yieldCounter().
|
static |
|
protected |
Definition at line 73 of file windows/SysActivity.hpp.
|
protected |
Definition at line 92 of file unix/SysActivity.hpp.
Referenced by close(), create(), equals(), getThreadID(), useCurrentThread(), and validateThread().
|
protected |
Definition at line 72 of file windows/SysActivity.hpp.