projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added support for running general updater on own
[feisty_meow.git]
/
nucleus
/
library
/
basis
/
mutex.cpp
diff --git
a/nucleus/library/basis/mutex.cpp
b/nucleus/library/basis/mutex.cpp
index 1857e1064780ca018e0b37b73d1aa64135d1439f..3f19f7a5495e23976f5674bd28556009c4b393ea 100644
(file)
--- a/
nucleus/library/basis/mutex.cpp
+++ b/
nucleus/library/basis/mutex.cpp
@@
-27,8
+27,8
@@
#ifdef __WIN32__
#define _WINSOCKAPI_ // make windows.h happy about winsock.
// winsock support...
#ifdef __WIN32__
#define _WINSOCKAPI_ // make windows.h happy about winsock.
// winsock support...
- #undef FD_SETSIZE
- #define FD_SETSIZE 1000
+
//
#undef FD_SETSIZE
+
//
#define FD_SETSIZE 1000
// if you don't set this, you can only select on a default of 64 sockets.
#include <winsock2.h>
#include <windows.h>
// if you don't set this, you can only select on a default of 64 sockets.
#include <winsock2.h>
#include <windows.h>
@@
-59,7
+59,7
@@
void mutex::construct()
ret = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
#endif
if (ret != 0) {
ret = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
#endif
if (ret != 0) {
- printf("failed to initialize mutex attributes!\n"); fflush(N
IL
);
+ printf("failed to initialize mutex attributes!\n"); fflush(N
ULL_POINTER
);
}
c_os_mutex = (pthread_mutex_t *)malloc(sizeof(pthread_mutex_t));
pthread_mutex_init((pthread_mutex_t *)c_os_mutex, &attr);
}
c_os_mutex = (pthread_mutex_t *)malloc(sizeof(pthread_mutex_t));
pthread_mutex_init((pthread_mutex_t *)c_os_mutex, &attr);