Classes | Macros | Functions | Variables
ythread.c File Reference
#include "ythread.h"
#include <sys/time.h>
#include <pthread.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for ythread.c:

Go to the source code of this file.

Classes

struct  yCRITICAL_SECTION_ST
 

Macros

#define __FILE_ID__   "ythread"
 

Functions

static void initTsdKey ()
 
void yCloseEvent (yEvent *ev)
 
int yCreateDetachedThread (void *(*fun)(void *), void *arg)
 
static int yCreateDetachedThreadEx (osThread *th, void *(*fun)(void *), void *arg)
 
void yCreateEvent (yEvent *ev)
 
void yCreateManualEvent (yEvent *ev, int initialState)
 
void yDeleteCriticalSection (yCRITICAL_SECTION *cs)
 
void yEnterCriticalSection (yCRITICAL_SECTION *cs)
 
void yInitializeCriticalSection (yCRITICAL_SECTION *cs)
 
static void yKillThread (osThread *th)
 
void yLeaveCriticalSection (yCRITICAL_SECTION *cs)
 
static void yReleaseDetachedThreadEx (osThread *th_hdl)
 
void yResetEvent (yEvent *ev)
 
void ySetEvent (yEvent *ev)
 
int yThreadCreate (yThread *yth, void *(*fun)(void *), void *arg)
 
int yThreadIndex (void)
 
int yThreadIsRunning (yThread *yth)
 
void yThreadKill (yThread *yth)
 
int yThreadMustEnd (yThread *yth)
 
void yThreadRequestEnd (yThread *yth)
 
void yThreadSignalEnd (yThread *yth)
 
void yThreadSignalStart (yThread *yth)
 
int yTryEnterCriticalSection (yCRITICAL_SECTION *cs)
 
static int yWaitEndThread (osThread *th)
 
int yWaitForEvent (yEvent *ev, int time)
 

Variables

static pthread_once_t yInitKeyOnce = PTHREAD_ONCE_INIT
 
static unsigned yNextThreadIdx = 1
 
static pthread_key_t yTsdKey
 

Macro Definition Documentation

#define __FILE_ID__   "ythread"

Definition at line 41 of file ythread.c.

Function Documentation

static void initTsdKey ( )
static

Definition at line 154 of file ythread.c.

void yCloseEvent ( yEvent ev)

Definition at line 223 of file ythread.c.

int yCreateDetachedThread ( void *(*)(void *)  fun,
void *  arg 
)

Definition at line 282 of file ythread.c.

static int yCreateDetachedThreadEx ( osThread th,
void *(*)(void *)  fun,
void *  arg 
)
static

Definition at line 229 of file ythread.c.

void yCreateEvent ( yEvent ev)

Definition at line 159 of file ythread.c.

void yCreateManualEvent ( yEvent ev,
int  initialState 
)

Definition at line 167 of file ythread.c.

void yDeleteCriticalSection ( yCRITICAL_SECTION cs)

Definition at line 682 of file ythread.c.

void yEnterCriticalSection ( yCRITICAL_SECTION cs)

Definition at line 647 of file ythread.c.

void yInitializeCriticalSection ( yCRITICAL_SECTION cs)

Definition at line 629 of file ythread.c.

static void yKillThread ( osThread th)
static

Definition at line 259 of file ythread.c.

void yLeaveCriticalSection ( yCRITICAL_SECTION cs)

Definition at line 672 of file ythread.c.

static void yReleaseDetachedThreadEx ( osThread th_hdl)
static

Definition at line 247 of file ythread.c.

void yResetEvent ( yEvent ev)

Definition at line 187 of file ythread.c.

void ySetEvent ( yEvent ev)

Definition at line 175 of file ythread.c.

int yThreadCreate ( yThread yth,
void *(*)(void *)  fun,
void *  arg 
)

Definition at line 293 of file ythread.c.

int yThreadIndex ( void  )

Definition at line 264 of file ythread.c.

int yThreadIsRunning ( yThread yth)

Definition at line 311 of file ythread.c.

void yThreadKill ( yThread yth)

Definition at line 343 of file ythread.c.

int yThreadMustEnd ( yThread yth)

Definition at line 338 of file ythread.c.

void yThreadRequestEnd ( yThread yth)

Definition at line 331 of file ythread.c.

void yThreadSignalEnd ( yThread yth)

Definition at line 326 of file ythread.c.

void yThreadSignalStart ( yThread yth)

Definition at line 318 of file ythread.c.

int yTryEnterCriticalSection ( yCRITICAL_SECTION cs)

Definition at line 657 of file ythread.c.

static int yWaitEndThread ( osThread th)
static

Definition at line 253 of file ythread.c.

int yWaitForEvent ( yEvent ev,
int  time 
)

Definition at line 196 of file ythread.c.

Variable Documentation

pthread_once_t yInitKeyOnce = PTHREAD_ONCE_INIT
static

Definition at line 150 of file ythread.c.

unsigned yNextThreadIdx = 1
static

Definition at line 152 of file ythread.c.

pthread_key_t yTsdKey
static

Definition at line 151 of file ythread.c.



yoctopuce_altimeter
Author(s): Anja Sheppard
autogenerated on Mon Jun 10 2019 15:49:13