|
From: | Moritz Gütlein |
Subject: | [certi-dev] Ownership Transfer |
Date: | Tue, 5 May 2020 20:17:36 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 |
Hello everybody,I hope this is the right place to ask for help, I didn't find something like a user-list: So, I am trying to transfer the ownership of an object between two federates, while updating an attribute. Both federates are running the following snippet in an infinite loop.
while(true){ if(!currentlyOwning) { fed->rtiamb->attributeOwnershipAcquisition(...); while(!fed->rtiamb->isAttributeOwnedByFederate(...)){ > evokeMultipleCallbacks(...);} // else{fed->rtiamb->updateAttributeValues(...); while(!shouldDivest){ evokeMultipleCallbacks(...); } fed->responseToOwnershipReleaseRequest( amb->releaseObject, amb->releaseAttributes ); } advanceTime(...); }
From my understanding this should be alright, but the whole thing works only if I replace the evokeMultipleCallbacks(...) with timeAdvance(...) calls. Could you please tell me, if I am doing something wrong? Is it really necessary to call timeAdvance(...) in the inner loops?
Thank you! Best, Moritz
[Prev in Thread] | Current Thread | [Next in Thread] |