Re: [BLACKBOX] WinApi tasks

From: [at]} <Aubrey.McIntosh{>
Date: Mon, 25 May 2009 17:28:38 -0500

----boundary-LibPST-iamunique-265634629_-_-
Content-type: text/plain

I use a blocking network read with a busy wait in my eMail program,
and I want to restructure to get rid of this. One solution to this
might be to use a WinApi task for the email (instead of
Services.Action) and I am reading the MSDN web pages on tasks.

I see that there is a WinApi.Sleep(1) call in the task
Kernel.KeyboardWatcher. I just wonder what other WinApi calls there
might be to give control back to the Windows task scheduler, that I
can read upon. I want to cause something to happen not unlike
Services.DoLater (action, Services.now) I just need the extra stack
space that the windows task gives to me.



-- 
-- 
Aubrey McIntosh, Ph.D.
1502 Devon Circle
Austin TX 78723-1814
http://home.grandecom.net/~amcintosh/aubrey/Search/
----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-265634629_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEkgdXNlIGEgYmxvY2tpbmcgbmV0d29yayByZWFk
IHdpdGggYSBidXN5IHdhaXQgaW4gbXkgZU1haWwgcHJvZ3JhbSxccGFyDQphbmQgSSB3YW50IHRv
IHJlc3RydWN0dXJlIHRvIGdldCByaWQgb2YgdGhpcy4gIE9uZSBzb2x1dGlvbiB0byB0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U1RTRVJWQExJ
U1RTLk9CRVJPTi5DSH19AJ4UYVY=
----boundary-LibPST-iamunique-265634629_-_---
Received on Tue May 26 2009 - 00:28:38 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:47 UTC