mware: fix generic completion events behaviour without the kernel
authorarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 26 Oct 2010 08:44:04 +0000 (08:44 +0000)
committerarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 26 Oct 2010 08:44:04 +0000 (08:44 +0000)
commit0e3b7c98f5b8fb6f71e431791789c9370a8ae89f
treee5439755af7099bffa4dd3be64ad373c905829c4
parentf65410ed94b6b75e5fac4e89c7ce2e0e56a4bb19
mware: fix generic completion events behaviour without the kernel

The correct behaviour of the generic completion events is to allow any
process to wait for the event and not only the one that initialized the
completion.

With this fix the "owner" of the completion is assigned when a process
call event_wait() and not event_initGeneric(). In this way a call to
event_do() correctly wakes up the process that actually performed the
event_wait().

Moreover, use the signal SIG_SYSTEM5 for generic completion events
(instead of SIG_SINGLE, that is already by the timer and msg).

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