code/__DEFINES/qdel.dm ![code/__DEFINES/qdel.dm0](git.png)
Defines that give qdel hints. These can be given as a return in /atom/proc/Destroy or by calling /proc/qdel. | |
QDEL_HINT_QUEUE | qdel should queue the object for deletion. |
---|---|
QDEL_HINT_LETMELIVE | qdel should let the object live after calling /atom/proc/Destroy. |
QDEL_HINT_IWILLGC | Functionally the same as the above. qdel should assume the object will gc on its own, and not check it. |
QDEL_HINT_HARDDEL | Qdel should assume this object won't GC, and queue a hard delete using a hard reference. |
GC_QUEUE_FILTER | short queue to filter out quick gc successes so they don't hang around in the main queue for 5 minutes |
GC_QUEUE_CHECK | main queue that waits 5 minutes because thats the longest byond can hold a reference to our shit. |
GC_QUEUE_HARDDELETE | short queue for things that hard delete instead of going thru the gc subsystem, this is purely so if they can softdelete, they will soft delete rather then wasting time with a hard delete. |
GC_QUEUE_COUNT | Number of queues, used for allocating the nested lists. Don't forget to increase this if you add a new queue stage |
GC_QUEUE_ITEM_QUEUE_TIME | Time this item entered the queue |
GC_QUEUE_ITEM_REF | Ref to the item |
GC_QUEUE_ITEM_GCD_DESTROYED | Item's gc_destroyed var value. Used to detect ref reuse. |
GC_QUEUE_ITEM_INDEX_COUNT | Number of item indexes, used for allocating the nested lists. Don't forget to increase this if you add a new queue item index |
QDEL_ITEM_ADMINS_WARNED | Set when admins are told about lag causing qdels in this type. |
QDEL_ITEM_SUSPENDED_FOR_LAG | Set when a type can no longer be hard deleted on failure because of lag it causes while this happens. |
Define Details
GC_QUEUE_CHECK ![code/__DEFINES/qdel.dm 30](git.png)
main queue that waits 5 minutes because thats the longest byond can hold a reference to our shit.
GC_QUEUE_COUNT ![code/__DEFINES/qdel.dm 32](git.png)
Number of queues, used for allocating the nested lists. Don't forget to increase this if you add a new queue stage
GC_QUEUE_FILTER ![code/__DEFINES/qdel.dm 29](git.png)
short queue to filter out quick gc successes so they don't hang around in the main queue for 5 minutes
GC_QUEUE_HARDDELETE ![code/__DEFINES/qdel.dm 31](git.png)
short queue for things that hard delete instead of going thru the gc subsystem, this is purely so if they can softdelete, they will soft delete rather then wasting time with a hard delete.
GC_QUEUE_ITEM_GCD_DESTROYED ![code/__DEFINES/qdel.dm 38](git.png)
Item's gc_destroyed var value. Used to detect ref reuse.
GC_QUEUE_ITEM_INDEX_COUNT ![code/__DEFINES/qdel.dm 39](git.png)
Number of item indexes, used for allocating the nested lists. Don't forget to increase this if you add a new queue item index
GC_QUEUE_ITEM_QUEUE_TIME ![code/__DEFINES/qdel.dm 36](git.png)
Time this item entered the queue
GC_QUEUE_ITEM_REF ![code/__DEFINES/qdel.dm 37](git.png)
Ref to the item
QDEL_HINT_HARDDEL ![code/__DEFINES/qdel.dm 12](git.png)
Qdel should assume this object won't GC, and queue a hard delete using a hard reference.
QDEL_HINT_IWILLGC ![code/__DEFINES/qdel.dm 10](git.png)
Functionally the same as the above. qdel
should assume the object will gc on its own, and not check it.
QDEL_HINT_LETMELIVE ![code/__DEFINES/qdel.dm 8](git.png)
qdel
should let the object live after calling /atom/proc/Destroy.
QDEL_HINT_QUEUE ![code/__DEFINES/qdel.dm 6](git.png)
qdel
should queue the object for deletion.
QDEL_ITEM_ADMINS_WARNED ![code/__DEFINES/qdel.dm 47](git.png)
Set when admins are told about lag causing qdels in this type.
QDEL_ITEM_SUSPENDED_FOR_LAG ![code/__DEFINES/qdel.dm 48](git.png)
Set when a type can no longer be hard deleted on failure because of lag it causes while this happens.