inline two msg pool functions.
authorGengbin Zheng <gzheng@bp-login1.(none)>
Fri, 11 Mar 2011 03:58:19 +0000 (21:58 -0600)
committerGengbin Zheng <gzheng@bp-login1.(none)>
Fri, 11 Mar 2011 03:58:19 +0000 (21:58 -0600)
src/conv-ldb/cldb.neighbor.c

index 9c2dde1858be2f5be90a414d59efcf1a8d53d035..4e40816272c85207d9f087bb2571f6468c0ad1c2 100644 (file)
@@ -40,7 +40,11 @@ CpvStaticDeclare(int, start);
 #if ! USE_MULTICAST
 CpvStaticDeclare(loadmsg *, msgpool);
 
-static loadmsg *getPool(){
+static
+#if CMK_C_INLINE
+inline 
+#endif
+loadmsg *getPool(){
   loadmsg *msg;
   if (CpvAccess(msgpool)!=NULL)  {
     msg = CpvAccess(msgpool);
@@ -53,7 +57,11 @@ static loadmsg *getPool(){
   return msg;
 }
 
-static void putPool(loadmsg *msg)
+static
+#if CMK_C_INLINE
+inline 
+#endif
+void putPool(loadmsg *msg)
 {
   msg->next = CpvAccess(msgpool);
   CpvAccess(msgpool) = msg;