From ce6fa906d3847c4b7cfc5ff0cf7631a0b385e15d Mon Sep 17 00:00:00 2001 From: Cloud Wu Date: Mon, 15 Dec 2014 18:08:00 +0800 Subject: [PATCH] remove unused macro --- skynet-src/skynet_mq.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/skynet-src/skynet_mq.c b/skynet-src/skynet_mq.c index 098cb210..ba0c61e6 100644 --- a/skynet-src/skynet_mq.c +++ b/skynet-src/skynet_mq.c @@ -42,8 +42,6 @@ static struct global_queue *Q = NULL; #define LOCK(q) while (__sync_lock_test_and_set(&(q)->lock,1)) {} #define UNLOCK(q) __sync_lock_release(&(q)->lock); -#define GP(p) ((p) % MAX_GLOBAL_MQ) - void skynet_globalmq_push(struct message_queue * queue) { struct global_queue *q= Q;