1 /* 2 * Copyright 2011, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 6 7 #include <util/KernelReferenceable.h> 8 9 #include <int.h> 10 11 12 void 13 KernelReferenceable::LastReferenceReleased() 14 { 15 if (are_interrupts_enabled()) 16 delete this; 17 else 18 deferred_delete(this); 19 } 20