1 /*- 2 * See the file LICENSE for redistribution information. 3 * 4 * Copyright (c) 1997, 2013 Oracle and/or its affiliates. All rights reserved. 5 * 6 * $Id$ 7 */ 8 9 #include "db_config.h" 10 11 #include "db_int.h" 12 13 #include "db_cxx.h" 14 #include "dbinc/cxx_int.h" 15 16 //////////////////////////////////////////////////////////////////////// 17 // // 18 // DbLock // 19 // // 20 //////////////////////////////////////////////////////////////////////// 21 DbLock(DB_LOCK value)22DbLock::DbLock(DB_LOCK value) 23 : lock_(value) 24 { 25 } 26 DbLock()27DbLock::DbLock() 28 { 29 memset(&lock_, 0, sizeof(DB_LOCK)); 30 } 31 DbLock(const DbLock & that)32DbLock::DbLock(const DbLock &that) 33 : lock_(that.lock_) 34 { 35 } 36 operator =(const DbLock & that)37DbLock &DbLock::operator = (const DbLock &that) 38 { 39 lock_ = that.lock_; 40 return (*this); 41 } 42