]> xenbits.xensource.com Git - libvirt.git/commit
Add support for tracking thread jobs
authorJiri Denemark <jdenemar@redhat.com>
Mon, 8 Jul 2013 10:27:34 +0000 (12:27 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 25 Mar 2015 09:00:53 +0000 (10:00 +0100)
commit956953884e1ba475b02e4b7d8311680c0ec4f83b
treeec34291d79e8ab03926125dcb29b4a9529d68bc3
parent61dda4f9abf547410530965f7cfc903db1a2c362
Add support for tracking thread jobs

Each thread can use a thread local variable to keep the name of a job
which is currently running in the job.

The virThreadJobSetWorker API is supposed to be called once by any
thread which is used as a worker, i.e., it is waiting in a pool, woken
up to do a job, and returned back to the pool.

The virThreadJobSet/virThreadJobClear APIs are to be called at the
beginning/end of each job.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
include/libvirt/virterror.h
po/POTFILES.in
src/Makefile.am
src/libvirt_private.syms
src/util/virerror.c
src/util/virthreadjob.c [new file with mode: 0644]
src/util/virthreadjob.h [new file with mode: 0644]