pthreadpool: Move creating of thread to new function
commitc43c8888ce263fd88ac91b042b3785d3a9864360
authorChristof Schmitt <cs@samba.org>
Tue, 28 Nov 2017 17:49:36 +0000 (28 10:49 -0700)
committerKarolin Seeger <kseeger@samba.org>
Wed, 13 Dec 2017 09:06:23 +0000 (13 10:06 +0100)
tree6ae72f490b10b87241b043a93b09bad21cc3557a
parent97a9e81db09a1e884c0f1ad22171851a9b437772
pthreadpool: Move creating of thread to new function

No functional change, but this simplifies error handling.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13170

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit 949ccc3ea9073a3d38bff28345f644d39177256f)
lib/pthreadpool/pthreadpool.c