/* * Copyright 2013 Haiku, Inc. All rights reserved. * Distributed under the terms of the MIT License. * * Authors: * Paweł Dziepak, pdziepak@quarnos.org */ #ifndef RUN_QUEUE_LINK_H #define RUN_QUEUE_LINK_H template struct RunQueueLink { RunQueueLink(); unsigned int fPriority; Element* fPrevious; Element* fNext; }; template class RunQueueLinkImpl { public: inline RunQueueLink* GetRunQueueLink(); private: RunQueueLink fRunQueueLink; }; #if KDEBUG template RunQueueLink::RunQueueLink() : fPrevious(NULL), fNext(NULL) { } #else template RunQueueLink::RunQueueLink() { } #endif template RunQueueLink* RunQueueLinkImpl::GetRunQueueLink() { return &fRunQueueLink; } #endif // RUN_QUEUE_LINK_H