Compare commits
6
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a12dcea2d9 | ||
|
|
9bb439d7e8 | ||
|
|
af7257c7ce | ||
|
|
cf1e8f855b | ||
|
|
5cb8658c76 | ||
|
|
57c04d8562 |
No files matched your search
+2
-1
@@ -41,6 +41,7 @@
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
|
||||
static inline char *med3 (char *, char *, char *,
|
||||
int (*)(const void *, const void *));
|
||||
@@ -62,7 +63,7 @@ static inline void swapfunc (char *, char *, size_t, int);
|
||||
} while (--i > 0); \
|
||||
}
|
||||
|
||||
#define SWAPINIT(a, es) swaptype = ((char *)a - (char *)0) % sizeof(long) || \
|
||||
#define SWAPINIT(a, es) swaptype = (uintptr_t)a % sizeof(long) || \
|
||||
es % sizeof(long) ? 2 : es == sizeof(long)? 0 : 1;
|
||||
|
||||
static inline void
|
||||
|
||||
+1
-1
@@ -2412,7 +2412,7 @@ int serverCronLite(struct aeEventLoop *eventLoop, long long id, void *clientData
|
||||
|
||||
void blockingOperationStarts() {
|
||||
if(!g_pserver->blocking_op_nesting++){
|
||||
g_pserver->blocked_last_cron = g_pserver->mstime;
|
||||
__atomic_load(&g_pserver->mstime, &g_pserver->blocked_last_cron, __ATOMIC_ACQUIRE);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user