Steve,
this one will change behavior for (dispatch_types == CS_DISPATCH_ONE). 
Original behavior:
- Message received
- Callback is not registered -> continue AND WAIT for another message
- Loop until at least one callback is called

New behavior:
- Message received
- Callback is not registered -> break and stop loop -> return to app, 
but without ANY action.

Question is, what behavior is correct, more logic? From my point of 
view, original one.

Regards,
   Honza


Steven Dake napsal(a):
> If a dispatch handler is undefined, the C compiler automatically defines
> it to NULL. This is intended behavior.  The dispatch functions check
> whether the value is NULL (meaning no action should be taken from the
> library point of view) and call "continue".  This doesn't trigger the
> dispatch_put operation locking up the cpg dispatch operations.  Instead
> "break" should be called to exit the switch and allow normal processing
> of the dispatch functions.
> 
> Regards
> -steve
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Openais mailing list
> [email protected]
> https://lists.linux-foundation.org/mailman/listinfo/openais

_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to