(EMPTH_LWP, EMPTH_POSIX, EMPTH_W32): Define in config.h instead of
compiler command line. Don't bother to conditionalize code in .c files that are only compiled when their thread package is used. (_EMPTH_LWP, EMPTH_LWP, _EMPTH_POSIX, EMPTH_POSIX, _EMPTH_WIN32) (EMPTH_W32): Identifiers beginning with an underscore and an uppercase letter are reserved for any use. Rename.
This commit is contained in:
parent
b921d3c262
commit
69150d10fc
14 changed files with 23 additions and 58 deletions
|
@ -37,8 +37,6 @@
|
|||
#include "prototypes.h"
|
||||
#include "empthread.h"
|
||||
|
||||
#ifdef _EMPTH_LWP
|
||||
|
||||
/* The thread `created' by lwpInitSystem() */
|
||||
static empth_t *empth_main;
|
||||
|
||||
|
@ -134,5 +132,3 @@ empth_sem_wait(empth_sem_t *sm)
|
|||
{
|
||||
lwpWait(sm);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -54,7 +54,6 @@
|
|||
#include "empthread.h"
|
||||
#include "prototypes.h"
|
||||
|
||||
#if defined(_WIN32) && defined(_EMPTH_WIN32)
|
||||
#define WIN32
|
||||
#include <winsock2.h>
|
||||
#undef NS_ALL
|
||||
|
@ -683,5 +682,3 @@ empth_sem_wait(empth_sem_t *pSem)
|
|||
|
||||
loc_RunThisThread();
|
||||
}
|
||||
|
||||
#endif /* _WIN32 */
|
||||
|
|
|
@ -51,8 +51,6 @@
|
|||
|
||||
#include <stdarg.h>
|
||||
|
||||
#ifdef _EMPTH_POSIX
|
||||
|
||||
#define EMPTH_KILLED 1
|
||||
|
||||
struct empth_t {
|
||||
|
@ -454,5 +452,3 @@ empth_sem_wait(empth_sem_t *sm)
|
|||
} else
|
||||
pthread_mutex_unlock(&sm->mtx_update);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue