SST/macro
|
#include <threading_pth.h>
Public Member Functions | |
virtual | ~threading_pth () |
virtual threading_interface * | copy () |
virtual void | init_context () |
virtual void | destroy_context () |
virtual void | start_context (int physical_thread_id, void *stack, size_t stacksize, void(*func)(void *), void *args, threading_interface *yield_to) |
Start a new context. More... | |
virtual void | swap_context (threading_interface *to) |
Swap context. More... | |
virtual void | complete_context (threading_interface *to) |
This is called when we have completed running the thread. More... | |
Public Member Functions inherited from sstmac::sw::threading_interface | |
virtual | ~threading_interface () |
Private Types | |
typedef pth_uctx_t | threadcontext_t |
Private Attributes | |
threadcontext_t | context_ |
Definition at line 21 of file threading_pth.h.
|
private |
Definition at line 23 of file threading_pth.h.
|
inlinevirtual |
Definition at line 29 of file threading_pth.h.
|
inlinevirtual |
This is called when we have completed running the thread.
It is called in the from context.
Implements sstmac::sw::threading_interface.
Definition at line 55 of file threading_pth.h.
References swap_context().
|
inlinevirtual |
Implements sstmac::sw::threading_interface.
Definition at line 32 of file threading_pth.h.
References destroy_context(), init_context(), start_context(), and swap_context().
|
virtual |
Implements sstmac::sw::threading_interface.
Referenced by copy().
|
virtual |
Implements sstmac::sw::threading_interface.
Referenced by copy().
|
virtual |
|
virtual |
Swap context.
Implements sstmac::sw::threading_interface.
Referenced by complete_context(), and copy().
|
private |
Definition at line 26 of file threading_pth.h.