blob: 99f4f3b5509e860fc0f29aaf4a2af3212177c789 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
//
// RWLock_POSIX.cpp
//
// Library: Foundation
// Package: Threading
// Module: RWLock
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/RWLock_POSIX.h"
namespace Poco {
RWLockImpl::RWLockImpl()
{
if (pthread_rwlock_init(&_rwl, NULL))
throw SystemException("cannot create reader/writer lock");
}
RWLockImpl::~RWLockImpl()
{
pthread_rwlock_destroy(&_rwl);
}
} // namespace Poco
|