2 * futex.spin: Promela code to validate futex wakeup algorithm.
24 * while (fut == -1) { }
30 * if queue = 1, then !_np
32 * This program is free software; you can redistribute it and/or modify
33 * it under the terms of the GNU General Public License as published by
34 * the Free Software Foundation; either version 2 of the License, or
35 * (at your option) any later version.
37 * This program is distributed in the hope that it will be useful,
38 * but WITHOUT ANY WARRANTY; without even the implied warranty of
39 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40 * GNU General Public License for more details.
42 * You should have received a copy of the GNU General Public License
43 * along with this program; if not, write to the Free Software
44 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
46 * Copyright (c) 2009 Mathieu Desnoyers
52 active proctype waker()
72 #ifdef INJ_QUEUE_NO_WAKE
78 active proctype waiter()