1/*-
2 * See the file LICENSE for redistribution information.
3 *
4 * Copyright (c) 1997,2008 Oracle.  All rights reserved.
5 *
6 * $Id: cxx_lock.cpp,v 12.7 2008/01/08 20:58:09 bostic Exp $
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
22DbLock::DbLock(DB_LOCK value)
23:	lock_(value)
24{
25}
26
27DbLock::DbLock()
28{
29	memset(&lock_, 0, sizeof(DB_LOCK));
30}
31
32DbLock::DbLock(const DbLock &that)
33:	lock_(that.lock_)
34{
35}
36
37DbLock &DbLock::operator = (const DbLock &that)
38{
39	lock_ = that.lock_;
40	return (*this);
41}
42