projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
schedule: use STL 'queue' instead of 'list'
[model-checker.git]
/
schedule.h
diff --git
a/schedule.h
b/schedule.h
index aa291ef8cd788872f14adce2f7199a6d3186f1de..8e306752da7a1c43d7e10f8fb106473eb6284636 100644
(file)
--- a/
schedule.h
+++ b/
schedule.h
@@
-1,7
+1,7
@@
#ifndef __SCHEDULE_H__
#define __SCHEDULE_H__
#ifndef __SCHEDULE_H__
#define __SCHEDULE_H__
-#include <
list
>
+#include <
queue
>
#include "libthreads.h"
#include "model.h"
#include "libthreads.h"
#include "model.h"
@@
-19,7
+19,7
@@
public:
struct thread * next_thread(void);
struct thread * get_current_thread(void);
private:
struct thread * next_thread(void);
struct thread * get_current_thread(void);
private:
- std::
list
<struct thread *> queue;
+ std::
queue
<struct thread *> queue;
struct thread *current;
};
struct thread *current;
};