summaryrefslogtreecommitdiff
path: root/server/dispatcher.c
AgeCommit message (Collapse)AuthorFilesLines
2016-03-30Convert Dispatcher and MainDispatcher to GObjectsJonathon Jongsma1-51/+183
Allows more explicit inheritance relationship, and numerous other advantages. Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2015-11-23dispatcher: Remove unused dispatcher_read_messagePavel Grunt1-13/+0
It is not needed since d3153f861065235c2a7a7120375be5db948c5a77 Signed-off-by: Pavel Grunt <pgrunt@redhat.com> Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
2015-11-09dispatcher: remove receive_data and send_data functionsMarc-André Lureau1-3/+3
Use read_safe/write_safe instead which do the same stuff Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
2015-10-22server: remove worker thread creation from dispatcherMarc-André Lureau1-0/+13
Acked-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
2015-08-20server/dispatcher: add extra_dispatcher, hack for red_recordAlon Levy1-0/+10
Signed-off-by: Alon Levy <alon@pobox.com>
2012-04-25Don't do arithmetic on void * type, use uint8_t insteadDaniel P. Berrange1-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>
2012-03-25Use the spice-common logging functionsMarc-André Lureau1-18/+16
It will abort by default for critical level messages. That behaviour can be tuned at runtime.
2012-03-25Use the spice-common submoduleMarc-André Lureau1-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
2012-02-14Remove extra '\n' from red_printf() callsDan McGee1-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>
2012-01-13Add missing includes of config.hDaniel P. Berrange1-0/+1
Not all files were including config.h
2011-11-08server/dispatcher: add dispatcher_register_async_done_callbackAlon Levy1-2/+13
2011-11-08introduce DISPATCHER_{NONE,ACK,ASYNC}Alon Levy1-5/+7
2011-11-08server: introduce dispatcherAlon Levy1-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