|
Re: [Adeos-main] [PATCH] let ipipe_catch_event return old handler: msg#00180linux.real-time.xenomai.devel
Jan Kiszka wrote: <snip> Don't you mean this instead? -int ipipe_catch_event(struct ipipe_domain *ipd,+ ipipe_event_handler_t old_handler; int self = 0;- if (!xchg(&ipd->evhand[event],handler)) { + if (!(old_handler = xchg(&ipd->evhand[event],handler))) { if (handler) {- return handler; + return old_handler; } -- Philippe. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [ANNOUNCE] RACK project officially started: 00180, Jan Kiszka |
|---|---|
| Next by Date: | Re: [RFC] shadow threads with prio 0 / SCHED_NORMAL: 00180, Gilles Chanteperdrix |
| Previous by Thread: | [ANNOUNCE] RACK project officially startedi: 00180, Jan Kiszka |
| Next by Thread: | Re: [Adeos-main] [PATCH] let ipipe_catch_event return old handler: 00180, Jan Kiszka |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |