On 06/29/2011 05:28 PM, Hans-Peter Diettrich wrote:
The code in a called subroutine doesn't know about the CS. [It usually
also doesn't care about from which exact thread it was called]
This means that possible recursion must be prevented in all related
code in a CS, or (safer) that the CS must be "recursive" (spinlock?)
on all platforms.
I was taking about the CS Enter and Leave procedures themselves, not
about calling functions within a CS
I feel that calling a subroutine within a CS is a bad idea anyway as the
point of CSes is to hold them as short as possible not to increase the
latency of the other threads.
-Michael
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel