File: Threads.doc

package info (click to toggle)
libzypp 17.38.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 27,744 kB
  • sloc: cpp: 132,661; xml: 2,587; sh: 518; python: 266; makefile: 27
file content (26 lines) | stat: -rw-r--r-- 762 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**

\page thread Libzypp and threads

\author Michael Andres <ma@suse.de>

\section thread_intro Libzypp and threads

Libzypp is \b 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.

\li \c Logging as one one of the core components has to become threadsafe.

\li \c SmartPointer as one of the core patterns implementing resource control need to become threadsafe

\li \c ...more


\subsection thread_loggin Logging in threads

\see 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.

*/