libzypp: Libzypp and threads

libzypp 17.38.13

Libzypp and threads

Author
  Michael Andres ma@su.nosp@m.se.d.nosp@m.e

# 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.