]> rtime.felk.cvut.cz Git - orte.git/blobdiff - orte/libjorte/JORTESubscriptionCreate.c
JORTE: document hack that 'bypasses' erratic bug in liborte
[orte.git] / orte / libjorte / JORTESubscriptionCreate.c
index e5d37ad41c5707f927bd8757db690f74b543e04c..f93d9e452f9f27db77d9a82cedf27fb007dcc96a 100644 (file)
@@ -54,7 +54,7 @@ recvCallBack(const ORTERecvInfo *info, void *vinstance, void *recvCallBackParam)
 
   JORTECallbackContext_t   *callback_cont;
 
-  // if the subscriber has been destroyed, return
+  // HACK: if the subscriber has been destroyed, return
   if ((*(JORTECallbackContext_t **)recvCallBackParam) == 0)
     return;
 
@@ -194,6 +194,8 @@ Java_org_ocera_orte_Subscription_jORTESubscriptionCreate
   void                   *buffer;
   int                     flag_ok = 0;
 
+  /* HACK: allocate space for callback context structure and than for a pointer to it */
+
   // memory alocation
   // don't forget use free() funct.!!
   callback_cont = (JORTECallbackContext_t *)malloc(sizeof(JORTECallbackContext_t));