@@ -1,6 +1,13 @@
#include <pthread.h>
#include <stdlib.h>
#include <limits.h>
#include <stdint.h>
#ifdef WIN32
#include <malloc.h>
#define alloca _alloca
#define __sync_fetch_and_add(ptr, addend) _InterlockedExchangeAdd((void*)ptr, addend)
#endif
/************
* kt_for() *
The note is not visible to the blocked user.