2 Copyright © 2011, The AROS Development Team. All rights reserved.
6 #include "exec_intern.h"
7 #include "taskstorage.h"
9 /*****************************************************************************
12 #include <proto/exec.h>
14 AROS_LH1(void, FreeTaskStorageSlot
,
17 AROS_LHA(int, slot
, D0
),
18 struct ExecBase
*, SysBase
, 140, Exec
)
21 This function will free a slot in taskstorage
30 Currently no checks are performed if one is owner of the slot.
31 This may be added in the future so one should deallocate a slot
32 from the same task that allocated the slot.
39 AllocTaskStorageSlot()
43 ******************************************************************************/
47 struct TaskStorageFreeSlot
*tsfs
=
48 AllocMem(sizeof(struct TaskStorageFreeSlot
), MEMF_PUBLIC
|MEMF_CLEAR
);
52 /* Don't do anything, we'll just loose the freed slot */
56 tsfs
->FreeSlot
= slot
;
58 AddHead((struct List
*)&PrivExecBase(SysBase
)->TaskStorageSlots
, (struct Node
*)tsfs
);