mirror of
https://github.com/samba-team/samba.git
synced 2025-07-06 08:59:08 +03:00
This is a replacement for fncall.[ch] without having to go through a pipe for job completion signalling Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
24 lines
850 B
Python
24 lines
850 B
Python
#!/usr/bin/env python
|
|
|
|
if bld.env.WITH_PTHREADPOOL:
|
|
bld.SAMBA3_SUBSYSTEM('PTHREADPOOL',
|
|
source='''pthreadpool.c
|
|
pthreadpool_pipe.c
|
|
pthreadpool_tevent.c
|
|
''',
|
|
deps='pthread rt replace tevent-util')
|
|
else:
|
|
bld.SAMBA3_SUBSYSTEM('PTHREADPOOL',
|
|
source='''pthreadpool_sync.c
|
|
pthreadpool_pipe.c
|
|
pthreadpool_tevent.c
|
|
''',
|
|
deps='replace tevent-util')
|
|
|
|
|
|
bld.SAMBA3_BINARY('pthreadpooltest',
|
|
source='tests.c',
|
|
deps='PTHREADPOOL',
|
|
enabled=bld.env.WITH_PTHREADPOOL,
|
|
install=False)
|