<div>Hi All,</div>
<div> </div>
<div>I want to call an xrl method of a process X in the middle of a function defined in some other process Y.</div>
<div> </div>
<div>The callback function defined in Y which processes the values returned by X simply sets a boolean variable VAR to TRUE if the value of XrlError object is OKAY.</div>
<div> </div>
<div>Below is how I called the xrl method of process X in Y, and wait for the callback to return:</div>
<div> </div>
<div> send_request(argument_list);</div>
<div> </div>
<div> while(!VAR)<br> {<br> // Do nothing<br> }</div>
<div> </div>
<div> // When VAR becomes true, do something</div>
<div> </div>
<div>where send_request(argument_list) is a local function in Y which calls the xrl method in the client interface of process X till the request has been successfully sent (As expected, it also sends across the name of the callback function in Y).</div>
<div> </div>
<div>VAR is set to TRUE when the callback in Y is called with an argument of XrlError::OKAY.</div>
<div> </div>
<div>However, waiting in a while loop for VAR to become TRUE through the callback in Y even prevents the xrl_method handler in process X from being called. Hence, the while loop above turns into an infinite loop since VAR will never be set to TRUE by the callback in Y.</div>
<div> </div>
<div>What is the proper way other than a while loop like above for waiting for VAR to become true ?</div>
<div> </div>
<div>Thanks,</div>
<div>Selcuk<br></div>