kernel/image: Switch to using DoublyLinkedList<> for struct image.
No functional change intended.
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#ifndef _KERNEL_IMAGE_H
|
||||
#define _KERNEL_IMAGE_H
|
||||
|
||||
|
||||
#include <image.h>
|
||||
|
||||
#include <image_defs.h>
|
||||
@@ -21,11 +22,10 @@ using BKernel::Team;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include <util/DoublyLinkedList.h>
|
||||
#include <util/OpenHashTable.h>
|
||||
|
||||
struct image {
|
||||
struct image* next;
|
||||
struct image* prev;
|
||||
struct image : public DoublyLinkedListLinkImpl<struct image> {
|
||||
struct image* hash_link;
|
||||
extended_image_info info;
|
||||
team_id team;
|
||||
|
||||
@@ -260,7 +260,7 @@ struct Team : TeamThreadIteratorEntry<team_id>, KernelReferenceable,
|
||||
Thread *thread_list; // protected by fLock, signal_lock and
|
||||
// gThreadCreationLock
|
||||
struct team_loading_info *loading_info; // protected by fLock
|
||||
struct list image_list; // protected by sImageMutex
|
||||
DoublyLinkedList<image> image_list; // protected by sImageMutex
|
||||
struct list watcher_list;
|
||||
struct list sem_list; // protected by sSemsSpinlock
|
||||
struct list port_list; // protected by sPortsLock
|
||||
|
||||
Reference in New Issue
Block a user