kernel: Remove RunQueueLink.h
This commit is contained in:
@@ -1,56 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2013 Haiku, Inc. All rights reserved.
|
|
||||||
* Distributed under the terms of the MIT License.
|
|
||||||
*
|
|
||||||
* Authors:
|
|
||||||
* Paweł Dziepak, [email protected]
|
|
||||||
*/
|
|
||||||
#ifndef RUN_QUEUE_LINK_H
|
|
||||||
#define RUN_QUEUE_LINK_H
|
|
||||||
|
|
||||||
|
|
||||||
template<typename Element>
|
|
||||||
struct RunQueueLink {
|
|
||||||
RunQueueLink();
|
|
||||||
|
|
||||||
unsigned int fPriority;
|
|
||||||
Element* fPrevious;
|
|
||||||
Element* fNext;
|
|
||||||
};
|
|
||||||
|
|
||||||
template<typename Element>
|
|
||||||
class RunQueueLinkImpl {
|
|
||||||
public:
|
|
||||||
inline RunQueueLink<Element>* GetRunQueueLink();
|
|
||||||
|
|
||||||
private:
|
|
||||||
RunQueueLink<Element> fRunQueueLink;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#if KDEBUG
|
|
||||||
template<typename Element>
|
|
||||||
RunQueueLink<Element>::RunQueueLink()
|
|
||||||
:
|
|
||||||
fPrevious(NULL),
|
|
||||||
fNext(NULL)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
template<typename Element>
|
|
||||||
RunQueueLink<Element>::RunQueueLink()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
template<typename Element>
|
|
||||||
RunQueueLink<Element>*
|
|
||||||
RunQueueLinkImpl<Element>::GetRunQueueLink()
|
|
||||||
{
|
|
||||||
return &fRunQueueLink;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#endif // RUN_QUEUE_LINK_H
|
|
||||||
|
|
||||||
@@ -9,10 +9,27 @@
|
|||||||
#define RUN_QUEUE_H
|
#define RUN_QUEUE_H
|
||||||
|
|
||||||
|
|
||||||
#include <RunQueueLink.h>
|
|
||||||
#include <util/Bitmap.h>
|
#include <util/Bitmap.h>
|
||||||
|
|
||||||
|
|
||||||
|
template<typename Element>
|
||||||
|
struct RunQueueLink {
|
||||||
|
RunQueueLink();
|
||||||
|
|
||||||
|
unsigned int fPriority;
|
||||||
|
Element* fPrevious;
|
||||||
|
Element* fNext;
|
||||||
|
};
|
||||||
|
|
||||||
|
template<typename Element>
|
||||||
|
class RunQueueLinkImpl {
|
||||||
|
public:
|
||||||
|
inline RunQueueLink<Element>* GetRunQueueLink();
|
||||||
|
|
||||||
|
private:
|
||||||
|
RunQueueLink<Element> fRunQueueLink;
|
||||||
|
};
|
||||||
|
|
||||||
template<typename Element>
|
template<typename Element>
|
||||||
class RunQueueStandardGetLink {
|
class RunQueueStandardGetLink {
|
||||||
private:
|
private:
|
||||||
@@ -90,6 +107,30 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
#if KDEBUG
|
||||||
|
template<typename Element>
|
||||||
|
RunQueueLink<Element>::RunQueueLink()
|
||||||
|
:
|
||||||
|
fPrevious(NULL),
|
||||||
|
fNext(NULL)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
template<typename Element>
|
||||||
|
RunQueueLink<Element>::RunQueueLink()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
template<typename Element>
|
||||||
|
RunQueueLink<Element>*
|
||||||
|
RunQueueLinkImpl<Element>::GetRunQueueLink()
|
||||||
|
{
|
||||||
|
return &fRunQueueLink;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
template<typename Element>
|
template<typename Element>
|
||||||
RunQueueLink<Element>*
|
RunQueueLink<Element>*
|
||||||
RunQueueStandardGetLink<Element>::operator()(Element* element) const
|
RunQueueStandardGetLink<Element>::operator()(Element* element) const
|
||||||
|
|||||||
Reference in New Issue
Block a user