Changeset 53ca318 in mainline for libc/generic/psthread.c


Ignore:
Timestamp:
2006-05-23T11:01:31Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8c6b45f
Parents:
07d960a
Message:

Small updates to asynchronous framework.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libc/generic/psthread.c

    r07d960a r53ca318  
    3636#include <futex.h>
    3737#include <assert.h>
     38#include <async.h>
    3839
    3940#ifndef PSTHREAD_INITIAL_STACK_PAGES_NO
     
    135136                goto ret_0;
    136137        }
    137         assert(!(ctype == PS_TO_MANAGER && list_empty(&manager_list)));
     138        /* If we are going to manager and none exists, create it */
     139        if (ctype == PS_TO_MANAGER && list_empty(&manager_list))
     140                async_create_manager();
    138141
    139142        pt = __tcb_get()->pst_data;
     
    251254        futex_down(&psthread_futex);
    252255        if (list_empty(&manager_list)) {
    253                 printf("No manager found!.\n");
    254256                futex_up(&psthread_futex);
    255257                return;
Note: See TracChangeset for help on using the changeset viewer.