|
From: | David Brown |
Subject: | Re: [avr-gcc-list] Avr-gcc Produces Incorrect Code with -Os |
Date: | Fri, 23 May 2008 09:54:24 +0200 |
User-agent: | Thunderbird 2.0.0.14 (Windows/20080421) |
Andy H wrote:
BTW I believe the common attribute/keyword for this should be monitor as in monitor void dostuff(void) { putchar ( āZā ); } This will give a degree of compatibility with other compilers.
If other compilers use "monitor", then that makes sense. It is also arguably more accurate, at least for those who have a background in more theoretical computing, while the word "critical" could just mean you want the function to be as fast as possible.
http://en.wikipedia.org/wiki/Monitor_%28synchronization%29 mvh., David
[Prev in Thread] | Current Thread | [Next in Thread] |