Changeset e090e1bc in mainline


Ignore:
Timestamp:
2006-06-05T11:01:29Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b91bb65
Parents:
214c5a0
Message:

Make ktaskclnp call ipc_cleanup and futex_cleanup.

Location:
generic
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • generic/include/proc/task.h

    r214c5a0 re090e1bc  
    3333#include <synch/spinlock.h>
    3434#include <synch/mutex.h>
     35#include <synch/futex.h>
    3536#include <adt/btree.h>
    3637#include <adt/list.h>
  • generic/include/synch/futex.h

    r214c5a0 re090e1bc  
    4848extern __native sys_futex_wakeup(__address uaddr);
    4949
     50extern void futex_cleanup(void);
     51
    5052#endif
  • generic/src/proc/task.c

    r214c5a0 re090e1bc  
    356356         */
    357357       
    358         /*
    359          * TODO:
    360          * Close IPC communication and release used futexes.
    361          * When this thread exits, the task refcount drops to zero and the task structure is
    362          * cleaned.
    363          */
    364 }
     358        ipc_cleanup();
     359        futex_cleanup();
     360}
  • generic/src/synch/futex.c

    r214c5a0 re090e1bc  
    304304        free(futex);
    305305}
     306
     307/** Remove references from futexes known to the current task. */
     308void futex_cleanup(void)
     309{
     310}
Note: See TracChangeset for help on using the changeset viewer.