PLASMA  2.4.5
PLASMA - Parallel Linear Algebra for Scalable Multi-core Architectures
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
plasmawinthread.h
Go to the documentation of this file.
1 
14 #ifndef PLASMWINTHREAD_H
15 #define PLASMWINTHREAD_H
16 
17 #include <windows.h>
18 
19 /*
20 typedef struct pthread_s {
21  HANDLE Hth;
22  unsigned IDth;
23  void *(*Fth) (void *);
24 } pthread_t;
25 */
26 typedef struct pthread_s {
28  unsigned int uThId;
29 } pthread_t;
30 
32 typedef int pthread_mutexattr_t;
33 typedef int pthread_attr_t;
34 typedef int pthread_condattr_t;
35 
36 typedef struct pthread_cond_s {
39  CRITICAL_SECTION cs;
40  int waitCount; /* waiting thread counter */
42 
43 typedef int pthread_attr_t;
44 
45 #define PTHREAD_MUTEX_INITIALIZER ((pthread_mutex_t) -1)
46 
47 #define PTHREAD_SCOPE_SYSTEM 1
48 
49 #define PLASMA_DLLPORT
50 #define PLASMA_CDECL __cdecl
51 
61 PLASMA_DLLPORT int PLASMA_CDECL pthread_create(pthread_t *tid, const pthread_attr_t *attr, void *(*start) (void *), void *arg);
66 PLASMA_DLLPORT int PLASMA_CDECL pthread_join(pthread_t thread, void **value_ptr);
68 
70 
72 
73 #endif