spBase
|
#include <sp/spDefs.h>
マクロ定義 | |
#define | SP_THREAD_PRIORITY_TIME_CRITICAL 15 |
#define | SP_THREAD_PRIORITY_HIGHEST 2 |
#define | SP_THREAD_PRIORITY_ABOVE_NORMAL 1 |
#define | SP_THREAD_PRIORITY_NORMAL 0 |
#define | SP_THREAD_PRIORITY_BELOW_NORMAL (-1) |
#define | SP_THREAD_PRIORITY_LOWEST (-2) |
#define | SP_THREAD_PRIORITY_IDLE (-15) |
#define | SP_EVENT_TIMEOUT_INFINITE -1 |
#define | SP_EVENT_WAIT_FAILED -1 |
#define | SP_EVENT_WAIT_SIGNALED 0 |
#define | SP_EVENT_WAIT_TIMEOUT 1 |
#define | SP_EVENT_WAIT_ABANDONED 2 |
型定義 | |
typedef void(* | spCommandThreadCallback) (spCommandThreadStatus status, long data, void *user_data) |
列挙型 | |
enum | spCommandThreadStatus { SP_COMMAND_THREAD_STARTED = 0 , SP_COMMAND_THREAD_FINISHED = 1 , SP_COMMAND_THREAD_COMMAND_FINISHED = 2 , SP_COMMAND_THREAD_COMMAND_FAILED = 3 , SP_COMMAND_THREAD_COMMAND_WAIT_FAILED = 4 } |
関数 | |
void * | spCreateThread (long stacksize, int priority, spThreadFunc func, void *data) |
void | spDestroyThread (void *handle) |
void | spExitThread (long status) |
void | spYieldThread (void) |
long | spWaitThread (void *handle) |
spThreadId | spGetThreadId (void *handle) |
spThreadId | spGetCurrentThreadId (void) |
spBool | spEqThreadId (spThreadId id1, spThreadId id2) |
void * | spCreateMutex (const char *name) |
void | spDestroyMutex (void *handle) |
spBool | spLockMutex (void *handle) |
spBool | spUnlockMutex (void *handle) |
spBool | spWaitMutex (void *handle) |
void * | spCreateEvent (spBool manual_reset, spBool initial_signal) |
spBool | spDestroyEvent (void *handle) |
int | spWaitEventTimeout (void *handle, long timeout_ms) |
spBool | spWaitEvent (void *handle) |
spBool | spSetEvent (void *handle) |
spBool | spResetEvent (void *handle) |
spBool | spPulseEvent (void *handle) |
spBool | spCreateCommandThread (const char *command, spCommandThreadCallback func, void *data) |