libzypp  10.5.0
Libzypp and threads
Author:
Michael Andres <ma@suse.de>

Libzypp and threads

Libzypp is not thread safe.

Before we can think about using threads in libzypp, or even libzypp in threads, a bunch of components have to be fixed.

  • Logging as one one of the core components has to become threadsafe.
  • SmartPointer as one of the core patterns implementing resource control need to become threadsafe
  • ...more

Logging in threads

See also:
http://accu.org/index.php/journals/1539, http://www.pantheios.org/

Need to estimate performance impact when making the current zypp::log implementation threadsafe. Current implementation is based on STL streams with a custom linebuffer.