Changeset 11070 for trunk/FACT++/dim/src
- Timestamp:
- 06/18/11 23:10:31 (13 years ago)
- Location:
- trunk/FACT++/dim/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/dim/src/diccpp.cxx
r10614 r11070 452 452 { 453 453 t->stop(); 454 //dim_print_date_time(); 455 //printf("DIM RPC: Stopped Timer, Data Received for %s\n", t->getName()); 454 456 if(DimClient::getNoDataCopy() == 0) 455 457 memcpy(t->itsData, buf, size); … … 504 506 itsData = buf; 505 507 itsSize = size; 508 //dim_print_date_time(); 509 //printf("DIM RPC: Timer fired, No Data Received for %s\n", itsName); 506 510 wakeUp = 1; 507 511 if(itsInit) … … 618 622 dim_wait(); 619 623 itsWaiting = 1; 624 if(itsTimeout) 625 start(itsTimeout); 626 //dim_print_date_time(); 627 //printf("DIM RPC: Started Timer for %s - %d secs\n", itsName, itsTimeout); 620 628 ret = DimClient::sendCommand(itsNameOut, itsDataOut, size); 621 629 if(!ret) 622 630 { 631 if(itsTimeout) 632 stop(); 633 //dim_print_date_time(); 634 //printf("DIM RPC: Stopped Timer, Command failed for %s\n", itsName); 623 635 // rpc_user_routine((int *)&itsTagId, itsNolinkBuf, &itsNolinkSize); 624 636 rpc_user_routine((long *)&itsHandler, itsNolinkBuf, &itsNolinkSize); 625 637 } 638 /* 626 639 else 627 640 { … … 629 642 start(itsTimeout); 630 643 } 644 */ 631 645 } 632 646 … … 655 669 // if(itsTagId) 656 670 // id_free(itsTagId, SRC_DIC); 671 //dim_print_date_time(); 672 //printf("DIM RPC: Deleting RPC and Timer for %s\n", itsName); 657 673 if(itsId) 658 674 dic_release_service(itsId); -
trunk/FACT++/dim/src/examples/rpc_client.cxx
r10614 r11070 87 87 88 88 dim_init(); 89 DimClient::setNoDataCopy();89 // DimClient::setNoDataCopy(); 90 90 91 for(i = 0; i < 1 0; i++)91 for(i = 0; i < 1; i++) 92 92 { 93 93 dim_start_thread(do_work,(void *)i);
Note:
See TracChangeset
for help on using the changeset viewer.