MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NdbUtil.cpp
1 /*
2  Copyright (C) 2003, 2005, 2006 MySQL AB, 2010 Sun Microsystems, Inc.
3  All rights reserved. Use is subject to license terms.
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; version 2 of the License.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
19 
20 /************************************************************************************************
21 Name: NdbUtil.C
22 Include:
23 Link:
24 Author: UABRONM Mikael Ronström UAB/B/SD
25 Date: 991029
26 Version: 0.4
27 Description: Utility classes for NDB API
28 Documentation:
29 Adjust: 991029 UABRONM First version.
30 Comment:
31 ************************************************************************************************/
32 
33 #include "NdbUtil.hpp"
34 
35 NdbLabel::NdbLabel(Ndb*)
36 {
37 }
38 
39 NdbLabel::~NdbLabel()
40 {
41 }
42 
43 NdbSubroutine::NdbSubroutine(Ndb*)
44 {
45 }
46 
47 NdbSubroutine::~NdbSubroutine()
48 {
49 }
50 
51 NdbBranch::NdbBranch(Ndb*) :
52  theSignal(NULL)
53 {
54 }
55 
56 NdbBranch::~NdbBranch()
57 {
58 }
59 
60 NdbCall::NdbCall(Ndb*) :
61  theSignal(NULL)
62 {
63 }
64 
65 NdbCall::~NdbCall()
66 {
67 }
68 
69 
70 NdbLockHandle::NdbLockHandle(Ndb*)
71 {
72 }
73 
74 NdbLockHandle::~NdbLockHandle()
75 {
76 }
77 
78 void
79 NdbLockHandle::init()
80 {
81  m_state = ALLOCATED;
82  m_table = NULL;
83  m_lockRef[0] = 0;
84  m_openBlobCount = 0;
85  thePrev = NULL;
86 }
87 
88 void
89 NdbLockHandle::release(Ndb* ndb)
90 {
91  m_state = FREE;
92 }