[AD] Tiny documentation update (faq section - rest(0) vs yield_timeslice() ) |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: alleg-developers@xxxxxxxxxx
- Subject: [AD] Tiny documentation update (faq section - rest(0) vs yield_timeslice() )
- From: StApostol <stapostol@xxxxxxxxxx>
- Date: Mon, 11 Apr 2005 00:47:44 +0300
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=fvpbvyTrRXD7sdXp5iZTHoHQOb8du3LWZnzxXqZVsvdvhk5dGSFRJBHyGtPd+cI35iDDvq26SOEUKOWEUU2cgwOpNH21n4dAUEymAjbt86dxf0/ebLG4AdwQoIJ7WXb59UzYXQEX9l24kGgO9myoYky5HU9jqWBdu4EwzHNzQ4s=
In the section: ' Why doesn't busy waiting on the key array work?' the
example should be updated to reflect the new rest(0) behavior (in the
place of yield_timeslice()). Thus, the following patch:
--- docs/src/faq._tx Mon Nov 8 22:47:18 2004 UTC
+++ docs/src/faq._tx Sun Apr 10 21:43:38 2005 UTC
@@ -796,7 +796,7 @@
for example:
<codeblock>
while (!key[KEY_ENTER])
- yield_timeslice();<endblock>
+ rest(0);<endblock>
For this case, however, it would be better to use
<code>readkey()</code> instead.
Or consider upgrading or downgrading your compiler.
@@ -825,4 +825,3 @@
See <link>http://alleg.sourceforge.net/maillist.html</a>.
</div>
-