Jinoh Kang (@iamahuman) commented about server/queue.c:
static cursor_pos_t cursor_history[64]; static unsigned int cursor_history_latest;
+#if defined(__i386__) || defined(__x86_64__)
+#define SHARED_WRITE_BEGIN( x ) \
- do { \
volatile unsigned int __seq = *(x); \
assert( (__seq & SEQUENCE_MASK) != SEQUENCE_MASK ); \
*(x) = ++__seq; \
- } while(0)
+#define SHARED_WRITE_END( x ) \
- do { \
volatile unsigned int __seq = *(x); \
Ditto.