event: always add a memory barrier before returning from event_waitTimeout()
authorarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 1 Nov 2010 16:23:32 +0000 (16:23 +0000)
committerarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 1 Nov 2010 16:23:32 +0000 (16:23 +0000)
commit961e7ada98d6520a74818efa4731210c1375b068
treed98bd3540e21d26f8f4d48e3c03e323ca79f20f2
parent9cb8aabd5d89b030d527f1c8da1676ec9dbb805c
event: always add a memory barrier before returning from event_waitTimeout()

In this way we are sure the compiler will not perform optimizations or
instruction reordering: so that the return from event is always done
after the execution of the corresponding event_do().

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4480 38d2e660-2303-0410-9eaa-f027e97ec537
bertos/mware/event.h