FACT++  1.0
int DimCmnd::send ( char *  name,
void *  data,
int  datasize 
)

Definition at line 484 of file diccpp.cxx.

References cmnd_done(), dic_cmnd_callback(), dic_cmnd_service(), dim_wait(), and DimCore::inCallback.

Referenced by DimClient::killServer(), DimClient::sendCommand(), and DimClient::setExitHandler().

485 {
486 // int id;
488  {
489  dic_cmnd_service(name, data, datasize);
490  return(1);
491  }
492  else
493  {
494  wakeUp = 0;
495 // id = id_get((void *)this, SRC_DIC);
496  dic_cmnd_callback(name, data, datasize,
497 // cmnd_done, id);
498  cmnd_done, (dim_long)this);
499  while(!wakeUp)
500  {
501 #ifdef __VMS
502  sys$hiber();
503 #else
504  dim_wait();
505 #endif
506  }
507 // id_free(id, SRC_DIC);
508  return(result);
509  }
510 }
int dim_wait(void)
Definition: dim_thr.c:409
int result
Definition: dic.hxx:284
int wakeUp
Definition: dic.hxx:283
static int inCallback
Definition: dim.hxx:11
int dic_cmnd_service(char *serv_name, void *serv_address, int serv_size)
Definition: dic.c:694
long dim_long
Definition: dim_common.h:57
float data[4 *1440]
static void cmnd_done(void *tagp, int *result)
Definition: diccpp.cxx:465
int dic_cmnd_callback(char *serv_name, void *serv_address, int serv_size, void(*usr_routine)(), dim_long tag)
Definition: dic.c:716

+ Here is the call graph for this function:

+ Here is the caller graph for this function: