MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
StopForCrash.hpp
1 /* Copyright (C) 2008 MySQL AB
2 
3  This program is free software; you can redistribute it and/or modify
4  it under the terms of the GNU General Public License as published by
5  the Free Software Foundation; version 2 of the License.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  GNU General Public License for more details.
11 
12  You should have received a copy of the GNU General Public License
13  along with this program; if not, write to the Free Software
14  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */
15 
16 #ifndef STOP_FOR_CRASH_HPP
17 #define STOP_FOR_CRASH_HPP
18 
19 #include "SignalData.hpp"
20 
21 /*
22  The GSN_STOP_FOR_CRASH signal is only used in multi-threaded ndbd.
23 
24  It is used during crash handling, sent as a prio A signal from the
25  crashing thread to all other threads to make sure that they stop before
26  generating the crash dump (to avoid dumping an inconsistent state of jam()
27  or signal buffer).
28 */
29 
30 class StopForCrash {
31  friend class SimulatedBlock;
32 
33  friend bool printSTOP_FOR_CRASH(FILE *,const Uint32 *, Uint32, Uint16);
34 public:
35  STATIC_CONST( SignalLength = 1 );
36 
37 public:
38  Uint32 flags; // No information in this signal atm.
39 };
40 
41 #endif