Re: [Vala] Need help in debugging async code
- From: Nor Jaidi Tuah <norjaidi tuah ubd edu bn>
- To: <michele dionisio gmail com>, <vala-list gnome org>
- Subject: Re: [Vala] Need help in debugging async code
- Date: Sat, 24 Sep 2016 11:46:34 +0800
If I understand your patch correctly, it would generate
something like this:
if (_data_->_state_ != 1) {
_data_->_state = 1;
return FALSE;
}
else {
// callback already called
}
etc. etc.
I don't think that's going to work with your use case.
_data_->_state_ would be stuck at 0 if you call the
callback before yield.
_state_in_progress_ simply doesn't help.
Nice day
Nor Jaidi Tuah
PRIVILEGED/CONFIDENTIAL information may be contained in this message. If you are neither the addressee
(intended recipient) nor an authorised recipient of the addressee, and have received this message in error,
please destroy this message (including attachments) and notify the sender immediately. STRICT PROHIBITION:
This message, whether in part or in whole, should not be reviewed, retained, copied, reused, disclosed,
distributed or used for any purpose whatsoever. Such unauthorised use may be unlawful and may contain
material protected by the Official Secrets Act (Cap 153) of the Laws of Brunei Darussalam. DISCLAIMER:
We/This Department/The Government of Brunei Darussalam, accept[s] no responsibility for loss or damage
arising from the use of this message in any manner whatsoever. Our messages are checked for viruses but we do
not accept liability for any viruses which may be transmitted in or with this message.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]