diff options
Diffstat (limited to 'src/include/gnunet_scheduler_lib.h')
-rw-r--r-- | src/include/gnunet_scheduler_lib.h | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/src/include/gnunet_scheduler_lib.h b/src/include/gnunet_scheduler_lib.h index 94e13f9b2..7c9ff1553 100644 --- a/src/include/gnunet_scheduler_lib.h +++ b/src/include/gnunet_scheduler_lib.h | |||
@@ -87,73 +87,6 @@ enum GNUNET_SCHEDULER_Reason | |||
87 | }; | 87 | }; |
88 | 88 | ||
89 | 89 | ||
90 | /** | ||
91 | * Valid task priorities. Use these, do not | ||
92 | * pass random integers! | ||
93 | */ | ||
94 | enum GNUNET_SCHEDULER_Priority | ||
95 | { | ||
96 | /** | ||
97 | * Run with the same priority as the current job. | ||
98 | */ | ||
99 | GNUNET_SCHEDULER_PRIORITY_KEEP = 0, | ||
100 | |||
101 | /** | ||
102 | * Run when otherwise idle. | ||
103 | */ | ||
104 | GNUNET_SCHEDULER_PRIORITY_IDLE = 1, | ||
105 | |||
106 | /** | ||
107 | * Run as background job (higher than idle, | ||
108 | * lower than default). | ||
109 | */ | ||
110 | GNUNET_SCHEDULER_PRIORITY_BACKGROUND = 2, | ||
111 | |||
112 | /** | ||
113 | * Run with the default priority (normal | ||
114 | * P2P operations). Any task that is scheduled | ||
115 | * without an explicit priority being specified | ||
116 | * will run with this priority. | ||
117 | */ | ||
118 | GNUNET_SCHEDULER_PRIORITY_DEFAULT = 3, | ||
119 | |||
120 | /** | ||
121 | * Run with high priority (important requests). | ||
122 | * Higher than DEFAULT. | ||
123 | */ | ||
124 | GNUNET_SCHEDULER_PRIORITY_HIGH = 4, | ||
125 | |||
126 | /** | ||
127 | * Run with priority for interactive tasks. | ||
128 | * Higher than "HIGH". | ||
129 | */ | ||
130 | GNUNET_SCHEDULER_PRIORITY_UI = 5, | ||
131 | |||
132 | /** | ||
133 | * Run with priority for urgent tasks. Use | ||
134 | * for things like aborts and shutdowns that | ||
135 | * need to preempt "UI"-level tasks. | ||
136 | * Higher than "UI". | ||
137 | */ | ||
138 | GNUNET_SCHEDULER_PRIORITY_URGENT = 6, | ||
139 | |||
140 | /** | ||
141 | * This is an internal priority level that is only used for tasks | ||
142 | * that are being triggered due to shutdown (they have automatically | ||
143 | * highest priority). User code must not use this priority level | ||
144 | * directly. Tasks run with this priority level that internally | ||
145 | * schedule other tasks will see their original priority level | ||
146 | * be inherited (unless otherwise specified). | ||
147 | */ | ||
148 | GNUNET_SCHEDULER_PRIORITY_SHUTDOWN = 7, | ||
149 | |||
150 | /** | ||
151 | * Number of priorities (must be the last priority). | ||
152 | * This priority must not be used by clients. | ||
153 | */ | ||
154 | GNUNET_SCHEDULER_PRIORITY_COUNT = 8 | ||
155 | }; | ||
156 | |||
157 | #include "gnunet_time_lib.h" | 90 | #include "gnunet_time_lib.h" |
158 | #include "gnunet_network_lib.h" | 91 | #include "gnunet_network_lib.h" |
159 | 92 | ||