[PATCH] soup-message-io: protect unpause_source by mutex



soup-message-io: protect unpause_source by mutex

Otherwise the the multithreaded program, which pauses message in the
one (server) thread and unpauses it in the another (worker) thread may
experience a crash under high workload (and in my case experienced it
indeed).

* libsoup/soup-message-io.c:
(struct SoupMessageIOData): new field 'unpause_source_mutex'
(new_iostate):
(soup_message_io_cleanup): allocate and deallocate it
(soup_message_io_stop):
(soup_message_io_pause):
(soup_message_io_unpause):
(io_unpause_internal): protect unpause_source by mutex

-- 
Andrew W. Nosenko <andrew w nosenko gmail com>

Attachment: 0001-soup-message-io-protect-unpause_source-by-mutex.patch
Description: Binary data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]