ProcessViewBrowser-ServerProgramming
Data Structures | Functions
wthread.h File Reference
#include "processviewserver.h"
#include <stddef.h>
#include <string.h>
#include <pthread.h>

Go to the source code of this file.

Data Structures

struct  WSEMAPHORE
 

Functions

int pvthread_attr_init (pthread_attr_t *attr)
 
int pvthread_create (pthread_t *tid, const pthread_attr_t *attr, void *(*func)(void *), void *arg)
 
void pvthread_close_handle (pthread_t *tid)
 
void pvthread_exit (void *status)
 
int pvthread_join (pthread_t tid, void **status)
 
int pvthread_mutex_init (pthread_mutex_t *mptr, const pthread_mutexattr_t *attr)
 
int pvthread_mutex_destroy (pthread_mutex_t *mptr)
 
int pvthread_mutex_lock (pthread_mutex_t *mptr)
 
int pvthread_mutex_trylock (pthread_mutex_t *mptr)
 
int pvthread_mutex_unlock (pthread_mutex_t *mptr)
 
int pvthread_cancel (pthread_t tid)
 
int pvinit_semaphore (WSEMAPHORE *s, int cmax)
 
int pvincrement_semaphore (WSEMAPHORE *s)
 
int pvwait_semaphore (WSEMAPHORE *s)
 
int pvthread_sleep (long msec)
 

Function Documentation

◆ pvincrement_semaphore()

int pvincrement_semaphore ( WSEMAPHORE s)

◆ pvinit_semaphore()

int pvinit_semaphore ( WSEMAPHORE s,
int  cmax 
)

◆ pvthread_attr_init()

int pvthread_attr_init ( pthread_attr_t *  attr)

◆ pvthread_cancel()

int pvthread_cancel ( pthread_t  tid)

◆ pvthread_close_handle()

void pvthread_close_handle ( pthread_t *  tid)

◆ pvthread_create()

int pvthread_create ( pthread_t *  tid,
const pthread_attr_t *  attr,
void *(*)(void *)  func,
void *  arg 
)

◆ pvthread_exit()

void pvthread_exit ( void *  status)

◆ pvthread_join()

int pvthread_join ( pthread_t  tid,
void **  status 
)

◆ pvthread_mutex_destroy()

int pvthread_mutex_destroy ( pthread_mutex_t *  mptr)

◆ pvthread_mutex_init()

int pvthread_mutex_init ( pthread_mutex_t *  mptr,
const pthread_mutexattr_t *  attr 
)

◆ pvthread_mutex_lock()

int pvthread_mutex_lock ( pthread_mutex_t *  mptr)

◆ pvthread_mutex_trylock()

int pvthread_mutex_trylock ( pthread_mutex_t *  mptr)

◆ pvthread_mutex_unlock()

int pvthread_mutex_unlock ( pthread_mutex_t *  mptr)

◆ pvthread_sleep()

int pvthread_sleep ( long  msec)

◆ pvwait_semaphore()

int pvwait_semaphore ( WSEMAPHORE s)