- Rewrote the write part of remoteobject
- With transactionID > 10^6, now termination messages are sent by contextdo and tasks - This still has bugs
This commit is contained in:
16
interface.c
16
interface.c
@@ -241,10 +241,10 @@ static int DriveTaskFunc(void *data)
|
||||
} else {
|
||||
ExeInterest(pServ->pExecutor,taskData->name, "finished with problem");
|
||||
}
|
||||
if(taskData->pCon->remote){
|
||||
SCPrintf(taskData->pCon,eValue,"TASKFINISHED:%s", taskData->name);
|
||||
}
|
||||
traceSys("drive","DriveTask %s finished with state %d", taskData->name,status);
|
||||
if(taskData->pCon->transID > 100000) {
|
||||
SCPrintf(taskData->pCon,eLog,"TASKEND %d", taskData->pCon->transID);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
/*--------------------------------------------------------------------------*/
|
||||
@@ -275,6 +275,9 @@ long StartDriveTask(void *obj, SConnection *pCon, char *name, float fTarget)
|
||||
ExeInterest(pServ->pExecutor,name,"started");
|
||||
DevexecLog("START",name);
|
||||
InvokeNewTarget(pServ->pExecutor,name,fTarget);
|
||||
if(pCon->transID > 100000) {
|
||||
SCPrintf(pCon,eLog,"TASKSTART %d", pCon->transID);
|
||||
}
|
||||
|
||||
taskData->id = DRIVEID;
|
||||
taskData->obj = obj;
|
||||
@@ -396,8 +399,8 @@ static int CountTaskFunc(void *data)
|
||||
ExeInterest(pServ->pExecutor,taskData->name, "finished with problem");
|
||||
}
|
||||
traceSys("count","CountTask %s finished with state %d", taskData->name,status);
|
||||
if(taskData->pCon->remote){
|
||||
SCPrintf(taskData->pCon,eValue,"TASKFINISHED:%s", taskData->name);
|
||||
if(taskData->pCon->transID > 100000) {
|
||||
SCPrintf(taskData->pCon,eLog,"TASKEND %d", taskData->pCon->transID);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -424,6 +427,9 @@ long StartCountTask(void *obj, SConnection *pCon, char *name)
|
||||
}
|
||||
ExeInterest(pServ->pExecutor,name,"started");
|
||||
DevexecLog("START",name);
|
||||
if(pCon->transID > 100000) {
|
||||
SCPrintf(pCon,eLog,"TASKSTART %d", pCon->transID);
|
||||
}
|
||||
|
||||
taskData->id = COUNTID;
|
||||
taskData->obj = obj;
|
||||
|
||||
Reference in New Issue
Block a user