QUARK
0.9.0
QUARK-QUeuingAndRuntimeforKernels
|
#include "quarkwinthread.h"
#include <limits.h>
#include <process.h>
#include <stdio.h>
#include <quark.h>
Go to the source code of this file.
Variables | |
CRITICAL_SECTION | quarkwinthread_static_initializer_check_lock |
void *(* | QUARK_realThStart )(void *) |
int | pthread_conclevel |
This file handles the mapping from pthreads calls to windows threads QUARK is a software package provided by Univ. of Tennessee, Univ. of California Berkeley and Univ. of Colorado Denver
Note : this file is a copy of a PLASMA file for use of QUARK in a standalone library updated by Asim YarKhan
Definition in file quarkwinthread.c.
QUARK_DLLPORT int QUARK_CDECL pthread_attr_destroy | ( | pthread_attr_t * | attr | ) |
Definition at line 127 of file quarkwinthread.c.
QUARK_DLLPORT int QUARK_CDECL pthread_attr_init | ( | pthread_attr_t * | attr | ) |
Definition at line 122 of file quarkwinthread.c.
QUARK_DLLPORT int QUARK_CDECL pthread_attr_setscope | ( | pthread_attr_t * | attr, |
int | scope | ||
) |
Definition at line 132 of file quarkwinthread.c.
References PTHREAD_SCOPE_SYSTEM.
QUARK_DLLPORT int QUARK_CDECL pthread_cond_broadcast | ( | pthread_cond_t * | cond | ) |
Definition at line 239 of file quarkwinthread.c.
References pthread_cond_s::cs, pthread_cond_s::hEvt, pthread_cond_s::hSem, and pthread_cond_s::waitCount.
QUARK_DLLPORT int QUARK_CDECL pthread_cond_destroy | ( | pthread_cond_t * | cond | ) |
Definition at line 197 of file quarkwinthread.c.
References pthread_cond_s::cs, pthread_cond_s::hEvt, and pthread_cond_s::hSem.
QUARK_DLLPORT int QUARK_CDECL pthread_cond_init | ( | pthread_cond_t * | cond, |
const pthread_condattr_t * | attr | ||
) |
Definition at line 183 of file quarkwinthread.c.
References pthread_cond_s::cs, FALSE, pthread_cond_s::hEvt, pthread_cond_s::hSem, and pthread_cond_s::waitCount.
QUARK_DLLPORT int QUARK_CDECL pthread_cond_wait | ( | pthread_cond_t * | cond, |
pthread_mutex_t * | mutex | ||
) |
Definition at line 204 of file quarkwinthread.c.
References pthread_cond_s::cs, FALSE, pthread_cond_s::hEvt, pthread_cond_s::hSem, PTHREAD_MUTEX_INITIALIZER, and pthread_cond_s::waitCount.
QUARK_DLLPORT int QUARK_CDECL pthread_create | ( | pthread_t * | thread, |
const pthread_attr_t * | attr, | ||
void *(*)(void *) | start, | ||
void * | arg | ||
) |
Definition at line 152 of file quarkwinthread.c.
References pthread_s::hThread, QUARK_realThStart, QUARK_winThStart(), and pthread_s::uThId.
QUARK_DLLPORT int QUARK_CDECL pthread_equal | ( | pthread_t | thread1, |
pthread_t | thread2 | ||
) |
Definition at line 42 of file quarkwinthread.c.
References pthread_s::uThId.
QUARK_DLLPORT int QUARK_CDECL pthread_join | ( | pthread_t | thread, |
void ** | value_ptr | ||
) |
Definition at line 177 of file quarkwinthread.c.
References pthread_s::hThread.
QUARK_DLLPORT int QUARK_CDECL pthread_mutex_destroy | ( | pthread_mutex_t * | mutex | ) |
Definition at line 117 of file quarkwinthread.c.
QUARK_DLLPORT int QUARK_CDECL pthread_mutex_init | ( | pthread_mutex_t * | mutex, |
const pthread_mutexattr_t * | attr | ||
) |
no security atributes
not owned (initialy) by the creating thread
no name provided: cannot be shared between processes
Definition at line 48 of file quarkwinthread.c.
References FALSE.
QUARK_DLLPORT int QUARK_CDECL pthread_mutex_lock | ( | pthread_mutex_t * | mutex | ) |
the wait was succesful
the wait failed
thread killed during the wait
impossible because of INFINITE
Definition at line 72 of file quarkwinthread.c.
References PTHREAD_MUTEX_INITIALIZER.
QUARK_DLLPORT int QUARK_CDECL pthread_mutex_trylock | ( | pthread_mutex_t * | mutex | ) |
the wait was succesful
the wait failed
thread killed during the wait
impossible because of INFINITE
Definition at line 91 of file quarkwinthread.c.
References PTHREAD_MUTEX_INITIALIZER.
QUARK_DLLPORT int QUARK_CDECL pthread_mutex_unlock | ( | pthread_mutex_t * | mutex | ) |
Definition at line 110 of file quarkwinthread.c.
QUARK_DLLPORT pthread_t QUARK_CDECL pthread_self | ( | void | ) |
Definition at line 34 of file quarkwinthread.c.
References pthread_s::hThread, and pthread_s::uThId.
QUARK_DLLPORT unsigned int QUARK_CDECL pthread_self_id | ( | void | ) |
Definition at line 30 of file quarkwinthread.c.
QUARK_DLLPORT int QUARK_CDECL pthread_setconcurrency | ( | int | level | ) |
Definition at line 266 of file quarkwinthread.c.
unsigned WINAPI QUARK_winThStart | ( | void * | arg | ) |
Definition at line 147 of file quarkwinthread.c.
References QUARK_realThStart.
int pthread_conclevel |
Definition at line 264 of file quarkwinthread.c.
void*(* QUARK_realThStart)(void *) |
Definition at line 142 of file quarkwinthread.c.
CRITICAL_SECTION quarkwinthread_static_initializer_check_lock |
this is needed to get a declaration for _beginthreadex()
Definition at line 27 of file quarkwinthread.c.