@@ -174,15 +174,6 @@ namespace verona::rt
174
174
NEXT_SLOT_TYPE_BITS) == NEXT_SLOT_READER_FLAG;
175
175
}
176
176
177
- /* *
178
- * Returns true if the next slot wants to acquire in write mode
179
- */
180
- bool is_next_slot_writer ()
181
- {
182
- return ((status.load (std::memory_order_acquire) >> NEXT_SLOT_TYPE_SHIFT) &
183
- NEXT_SLOT_TYPE_BITS) == NEXT_SLOT_WRITER_FLAG;
184
- }
185
-
186
177
/* *
187
178
* Returns true if all the slots in a behaviour haven't finished their acquire phase
188
179
*/
@@ -290,7 +281,7 @@ namespace verona::rt
290
281
*/
291
282
BehaviourCore* next_behaviour ()
292
283
{
293
- assert (is_next_slot_writer ());
284
+ assert (! is_next_slot_read_only ());
294
285
return (
295
286
BehaviourCore*)((status.load (std::memory_order_acquire) >> NEXT_POINTER_SHIFT) << NEXT_POINTER_SHIFT);
296
287
}
@@ -972,7 +963,7 @@ namespace verona::rt
972
963
973
964
if (is_read_only ())
974
965
{
975
- if (is_next_slot_writer ())
966
+ if (! is_next_slot_read_only ())
976
967
{
977
968
Logging::cout () << *this << " Reader setting next writer variable "
978
969
<< next_behaviour () << Logging::endl;
@@ -1003,8 +994,8 @@ namespace verona::rt
1003
994
}
1004
995
return ;
1005
996
}
1006
-
1007
- if (is_next_slot_writer ()) {
997
+
998
+ if (! is_next_slot_read_only ()) {
1008
999
Logging::cout () << *this
1009
1000
<< " Writer waking up next writer cown next slot "
1010
1001
<< *next_behaviour () << Logging::endl;
0 commit comments