#include "ythread.h"
#include <sys/time.h>
#include <pthread.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
#define __FILE_ID__ "ythread" |
static void initTsdKey |
( |
| ) |
|
|
static |
void yCloseEvent |
( |
yEvent * |
ev | ) |
|
int yCreateDetachedThread |
( |
void *(*)(void *) |
fun, |
|
|
void * |
arg |
|
) |
| |
static int yCreateDetachedThreadEx |
( |
osThread * |
th, |
|
|
void *(*)(void *) |
fun, |
|
|
void * |
arg |
|
) |
| |
|
static |
void yCreateEvent |
( |
yEvent * |
ev | ) |
|
void yCreateManualEvent |
( |
yEvent * |
ev, |
|
|
int |
initialState |
|
) |
| |
static void yKillThread |
( |
osThread * |
th | ) |
|
|
static |
static void yReleaseDetachedThreadEx |
( |
osThread * |
th_hdl | ) |
|
|
static |
void yResetEvent |
( |
yEvent * |
ev | ) |
|
int yThreadCreate |
( |
yThread * |
yth, |
|
|
void *(*)(void *) |
fun, |
|
|
void * |
arg |
|
) |
| |
int yThreadIndex |
( |
void |
| ) |
|
int yThreadIsRunning |
( |
yThread * |
yth | ) |
|
int yThreadMustEnd |
( |
yThread * |
yth | ) |
|
void yThreadRequestEnd |
( |
yThread * |
yth | ) |
|
void yThreadSignalEnd |
( |
yThread * |
yth | ) |
|
void yThreadSignalStart |
( |
yThread * |
yth | ) |
|
static int yWaitEndThread |
( |
osThread * |
th | ) |
|
|
static |
int yWaitForEvent |
( |
yEvent * |
ev, |
|
|
int |
time |
|
) |
| |
pthread_once_t yInitKeyOnce = PTHREAD_ONCE_INIT |
|
static |
unsigned yNextThreadIdx = 1 |
|
static |