aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2014-09-11 06:53:42 -0400
committerNamhoon Kim <namhoonk@cs.unc.edu>2014-11-03 21:59:03 -0500
commit563999251e34d52bfbc47889cabd763714d020e1 (patch)
tree428b52531427f333a221bcd85b6608fae2d58558 /include
parentaca9db004d887d28621a0fc30818d7ebf77fc9bf (diff)
Move 'reservation' field from task_client to generic reservation_client
This makes it a lot easier to write generic code for thread arrival / thread departure in plugins with multiple types of reservation clients.
Diffstat (limited to 'include')
-rw-r--r--include/litmus/reservation.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/litmus/reservation.h b/include/litmus/reservation.h
index d8d6ce37dc47..9c23e27165b2 100644
--- a/include/litmus/reservation.h
+++ b/include/litmus/reservation.h
@@ -33,9 +33,11 @@ typedef struct task_struct * (*dispatch_t) (
33); 33);
34 34
35/* Something that can be managed in a reservation and that can yield 35/* Something that can be managed in a reservation and that can yield
36 * a process for dispatching. */ 36 * a process for dispatching. Contains a pointer to the reservation
37 * to which it "belongs". */
37struct reservation_client { 38struct reservation_client {
38 struct list_head list; 39 struct list_head list;
40 struct reservation* reservation;
39 dispatch_t dispatch; 41 dispatch_t dispatch;
40}; 42};
41 43
@@ -135,7 +137,6 @@ struct task_struct* default_dispatch_client(
135/* "connector" reservation client to hook up tasks with reservations */ 137/* "connector" reservation client to hook up tasks with reservations */
136struct task_client { 138struct task_client {
137 struct reservation_client client; 139 struct reservation_client client;
138 struct reservation* reservation;
139 struct task_struct *task; 140 struct task_struct *task;
140}; 141};
141 142