Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1407 → Rev 1406

/uspace/trunk/libc/generic/psthread.c
35,7 → 35,6
#include <kernel/arch/faddr.h>
#include <futex.h>
#include <assert.h>
#include <async.h>
 
#ifndef PSTHREAD_INITIAL_STACK_PAGES_NO
#define PSTHREAD_INITIAL_STACK_PAGES_NO 1
135,9 → 134,7
if (ctype == PS_FROM_MANAGER && list_empty(&ready_list)) {
goto ret_0;
}
/* If we are going to manager and none exists, create it */
if (ctype == PS_TO_MANAGER && list_empty(&manager_list))
async_create_manager();
assert(!(ctype == PS_TO_MANAGER && list_empty(&manager_list)));
 
pt = __tcb_get()->pst_data;
if (!context_save(&pt->ctx))
253,6 → 250,7
{
futex_down(&psthread_futex);
if (list_empty(&manager_list)) {
printf("No manager found!.\n");
futex_up(&psthread_futex);
return;
}