View | Details | Raw Unified | Return to bug 47843
Collapse All | Expand All

(-)apr-util-1.3.9/misc/apr_thread_pool.c (+5 lines)
Lines 379-385 APU_DECLARE(apr_status_t) apr_thread_poo Link Here
379
                              apr_pool_cleanup_null);
379
                              apr_pool_cleanup_null);
380
380
381
    while (init_threads) {
381
    while (init_threads) {
382
        /* Grab the mutex as apr_thread_create() and thread_pool_func() will 
383
         * allocate from (*me)->pool. This is dangerous if there are multiple 
384
         * initial threads to create. */
385
        apr_thread_mutex_lock((*me)->lock);
382
        rv = apr_thread_create(&t, NULL, thread_pool_func, *me, (*me)->pool);
386
        rv = apr_thread_create(&t, NULL, thread_pool_func, *me, (*me)->pool);
387
        apr_thread_mutex_unlock((*me)->lock);
383
        if (APR_SUCCESS != rv) {
388
        if (APR_SUCCESS != rv) {
384
            break;
389
            break;
385
        }
390
        }

Return to bug 47843