summaryrefslogtreecommitdiff
path: root/qpid/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/cpp')
-rw-r--r--qpid/cpp/bindings/qpid/dotnet/src/Address.cpp2
-rw-r--r--qpid/cpp/bindings/qpid/dotnet/src/Connection.cpp2
-rw-r--r--qpid/cpp/bindings/qpid/dotnet/src/FailoverUpdates.cpp2
-rw-r--r--qpid/cpp/bindings/qpid/dotnet/src/Message.cpp2
-rw-r--r--qpid/cpp/bindings/qpid/dotnet/src/Receiver.cpp2
-rw-r--r--qpid/cpp/bindings/qpid/dotnet/src/Sender.cpp2
-rw-r--r--qpid/cpp/bindings/qpid/dotnet/src/Session.cpp2
7 files changed, 7 insertions, 7 deletions
diff --git a/qpid/cpp/bindings/qpid/dotnet/src/Address.cpp b/qpid/cpp/bindings/qpid/dotnet/src/Address.cpp
index 67484df1c4..e47db9f925 100644
--- a/qpid/cpp/bindings/qpid/dotnet/src/Address.cpp
+++ b/qpid/cpp/bindings/qpid/dotnet/src/Address.cpp
@@ -233,7 +233,7 @@ namespace Messaging {
{
if (NULL != nativeObjPtr)
{
- privateLock = gcnew System::Object();
+ msclr::lock lk(privateLock);
if (NULL != nativeObjPtr)
{
diff --git a/qpid/cpp/bindings/qpid/dotnet/src/Connection.cpp b/qpid/cpp/bindings/qpid/dotnet/src/Connection.cpp
index 011c720bdc..9171b5e9fc 100644
--- a/qpid/cpp/bindings/qpid/dotnet/src/Connection.cpp
+++ b/qpid/cpp/bindings/qpid/dotnet/src/Connection.cpp
@@ -184,7 +184,7 @@ namespace Messaging {
{
if (NULL != nativeObjPtr)
{
- privateLock = gcnew System::Object();
+ msclr::lock lk(privateLock);
if (NULL != nativeObjPtr)
{
diff --git a/qpid/cpp/bindings/qpid/dotnet/src/FailoverUpdates.cpp b/qpid/cpp/bindings/qpid/dotnet/src/FailoverUpdates.cpp
index 19b55db3f8..4397789f42 100644
--- a/qpid/cpp/bindings/qpid/dotnet/src/FailoverUpdates.cpp
+++ b/qpid/cpp/bindings/qpid/dotnet/src/FailoverUpdates.cpp
@@ -81,7 +81,7 @@ namespace Messaging {
{
if (NULL != nativeObjPtr)
{
- privateLock = gcnew System::Object();
+ msclr::lock lk(privateLock);
if (NULL != nativeObjPtr)
{
diff --git a/qpid/cpp/bindings/qpid/dotnet/src/Message.cpp b/qpid/cpp/bindings/qpid/dotnet/src/Message.cpp
index 27cf4e7dba..ca7d796b9e 100644
--- a/qpid/cpp/bindings/qpid/dotnet/src/Message.cpp
+++ b/qpid/cpp/bindings/qpid/dotnet/src/Message.cpp
@@ -244,7 +244,7 @@ namespace Messaging {
{
if (NULL != nativeObjPtr)
{
- privateLock = gcnew System::Object();
+ msclr::lock lk(privateLock);
if (NULL != nativeObjPtr)
{
diff --git a/qpid/cpp/bindings/qpid/dotnet/src/Receiver.cpp b/qpid/cpp/bindings/qpid/dotnet/src/Receiver.cpp
index 4f96c23511..bbd7dd4c52 100644
--- a/qpid/cpp/bindings/qpid/dotnet/src/Receiver.cpp
+++ b/qpid/cpp/bindings/qpid/dotnet/src/Receiver.cpp
@@ -90,7 +90,7 @@ namespace Messaging {
{
if (NULL != nativeObjPtr)
{
- privateLock = gcnew System::Object();
+ msclr::lock lk(privateLock);
if (NULL != nativeObjPtr)
{
diff --git a/qpid/cpp/bindings/qpid/dotnet/src/Sender.cpp b/qpid/cpp/bindings/qpid/dotnet/src/Sender.cpp
index 102e6c20b3..4e3502f2fd 100644
--- a/qpid/cpp/bindings/qpid/dotnet/src/Sender.cpp
+++ b/qpid/cpp/bindings/qpid/dotnet/src/Sender.cpp
@@ -85,7 +85,7 @@ namespace Messaging {
{
if (NULL != nativeObjPtr)
{
- privateLock = gcnew System::Object();
+ msclr::lock lk(privateLock);
if (NULL != nativeObjPtr)
{
diff --git a/qpid/cpp/bindings/qpid/dotnet/src/Session.cpp b/qpid/cpp/bindings/qpid/dotnet/src/Session.cpp
index 929dddf80c..294004b537 100644
--- a/qpid/cpp/bindings/qpid/dotnet/src/Session.cpp
+++ b/qpid/cpp/bindings/qpid/dotnet/src/Session.cpp
@@ -90,7 +90,7 @@ namespace Messaging {
{
if (NULL != nativeObjPtr)
{
- privateLock = gcnew System::Object();
+ msclr::lock lk(privateLock);
if (NULL != nativeObjPtr)
{