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(LONG
, slot
, D0
),
18 struct ExecBase
*, SysBase
, 181, Exec
)
21 This function will free a slot in taskstorage
24 slot - The slot to free.
30 Currently no checks are performed to determine if one is the owner
31 of the slot. This may be added in the future, so one should
32 deallocate a slot 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 lose the freed slot */
56 tsfs
->FreeSlot
= slot
;
59 AddHead((struct List
*)&PrivExecBase(SysBase
)->TaskStorageSlots
, (struct Node
*)tsfs
);