code/__DEFINES/qdel.dm
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 |
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
main queue that waits 5 minutes because thats the longest byond can hold a reference to our shit.
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_FILTER
short queue to filter out quick gc successes so they don't hang around in the main queue for 5 minutes
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.
QDEL_HINT_HARDDEL
Qdel should assume this object won't GC, and queue a hard delete using a hard reference.
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_LETMELIVE
qdel
should let the object live after calling [/atom/proc/Destroy].
QDEL_HINT_QUEUE
qdel
should queue the object for deletion.
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.