summaryrefslogtreecommitdiffstats
path: root/server/dispatcher.c
Commit message (Collapse)AuthorAgeFilesLines
* dispatcher: Remove unused dispatcher_read_messagePavel Grunt2015-11-231-13/+0
| | | | | | | It is not needed since d3153f861065235c2a7a7120375be5db948c5a77 Signed-off-by: Pavel Grunt <pgrunt@redhat.com> Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* dispatcher: remove receive_data and send_data functionsMarc-André Lureau2015-11-091-3/+3
| | | | | | Use read_safe/write_safe instead which do the same stuff Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
* server: remove worker thread creation from dispatcherMarc-André Lureau2015-10-221-0/+13
| | | | | Acked-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
* server/dispatcher: add extra_dispatcher, hack for red_recordAlon Levy2015-08-201-0/+10
| | | | Signed-off-by: Alon Levy <alon@pobox.com>
* Don't do arithmetic on void * type, use uint8_t insteadDaniel P. Berrange2012-04-251-6/+6
| | | | | | | | Arithmetic on void * types is non-portable & trivially avoided * server/dispatcher.c: Use uint8_t for arithmetic Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Use the spice-common logging functionsMarc-André Lureau2012-03-251-18/+16
| | | | | It will abort by default for critical level messages. That behaviour can be tuned at runtime.
* Use the spice-common submoduleMarc-André Lureau2012-03-251-2/+23
| | | | | | | | | | | | | | | | | | This patch will replace the common/ directory with the spice-common project. It is for now a simple project subdirectory shared with spice-gtk, but the goal is to make it a proper library later on. With this change, the spice-server build is broken. The following commits fix the build, and have been seperated to ease the review. v2 - moves all the generated marshallers to spice-common library - don't attempt to fix windows VS build, which should somehow be splitted with spice-common (or built from tarball only to avoid generation tools/libs deps) v3 - uses libspice-common-client - fix a mutex.h inclusion reported by Alon
* Remove extra '\n' from red_printf() callsDan McGee2012-02-141-6/+6
| | | | | | | red_printf() takes care of adding a newline to all messages; remove the extra newline from all messages and macros that were doubling them up. Signed-off-by: Dan McGee <dpmcgee@gmail.com>
* Add missing includes of config.hDaniel P. Berrange2012-01-131-0/+1
| | | | Not all files were including config.h
* server/dispatcher: add dispatcher_register_async_done_callbackAlon Levy2011-11-081-2/+13
|
* introduce DISPATCHER_{NONE,ACK,ASYNC}Alon Levy2011-11-081-5/+7
|
* server: introduce dispatcherAlon Levy2011-11-081-0/+248
used for main_dispatcher only in this patch. Dispatcher is meant to be used for Main<->any low frequency messages. It's interface is meant to include the red_dispatcher usage: fixed size messages per message type some messages require an ack Some methods are added to be used by RedDispatcher later: dispatcher_handle_read - to be called directly by RedDispatcher epoll based loop dispatcher_set_opaque - to be set from red_worker pthread dispatcher_init - allow NULL core as used by red_worker Read and Write behavior: Sender: blocking write, blocking read for ack (if any). Reader: poll for any data, if such then blocking read for a message_type and following message. repeat until poll returns with no pending data to read. FDO Bugzilla: 42463