Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1582 → Rev 1583

/kernel/trunk/generic/include/proc/task.h
32,6 → 32,7
#include <typedefs.h>
#include <synch/spinlock.h>
#include <synch/mutex.h>
#include <synch/futex.h>
#include <adt/btree.h>
#include <adt/list.h>
#include <ipc/ipc.h>
/kernel/trunk/generic/include/synch/futex.h
47,4 → 47,6
extern __native sys_futex_sleep_timeout(__address uaddr, __u32 usec, int flags);
extern __native sys_futex_wakeup(__address uaddr);
 
extern void futex_cleanup(void);
 
#endif
/kernel/trunk/generic/src/synch/futex.c
303,3 → 303,8
futex = hash_table_get_instance(item, futex_t, ht_link);
free(futex);
}
 
/** Remove references from futexes known to the current task. */
void futex_cleanup(void)
{
}
/kernel/trunk/generic/src/proc/task.c
355,10 → 355,6
* and no new threads can be created.
*/
/*
* TODO:
* Close IPC communication and release used futexes.
* When this thread exits, the task refcount drops to zero and the task structure is
* cleaned.
*/
ipc_cleanup();
futex_cleanup();
}