3 if bld
.env
.WITH_PTHREADPOOL
:
4 bld
.SAMBA_SUBSYSTEM('PTHREADPOOL',
5 source
='''pthreadpool.c
9 deps
='pthread rt replace tevent-util')
11 bld
.SAMBA_SUBSYSTEM('PTHREADPOOL',
12 source
='''pthreadpool_sync.c
16 deps
='replace tevent-util')
19 bld
.SAMBA_BINARY('pthreadpooltest',
22 enabled
=bld
.env
.WITH_PTHREADPOOL
,
25 bld
.SAMBA_BINARY('pthreadpooltest_cmocka',
26 source
='tests_cmocka.c',
27 deps
='PTHREADPOOL cmocka',
28 ldflags
='-Wl,--wrap=pthread_create',
29 enabled
=bld
.env
.WITH_PTHREADPOOL
and bld
.env
['HAVE_LDWRAP'],