Currently 0 also means unlimited, but that will change soon,
to force no thread and strict sync processing.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
#include <poll.h>
#include <errno.h>
#include <stdlib.h>
+#include <limits.h>
#include <pthread.h>
#include <unistd.h>
#include <sys/types.h>
strerror(ret));
return ret;
}
- ret = pthreadpool_tevent_init(ev, 0, &pool);
+ ret = pthreadpool_tevent_init(ev, UINT_MAX, &pool);
if (ret != 0) {
fprintf(stderr, "pthreadpool_tevent_init failed: %s\n",
strerror(ret));
#include <setjmp.h>
#include <stdlib.h>
#include <string.h>
+#include <limits.h>
#include <talloc.h>
#include <tevent.h>
t->ev = tevent_context_init(t);
assert_non_null(t->ev);
- ret = pthreadpool_tevent_init(t->ev, 0, &t->pool);
+ ret = pthreadpool_tevent_init(t->ev, UINT_MAX, &t->pool);
assert_return_code(ret, 0);
*state = t;