diff options
Diffstat (limited to 'qpid/cpp')
| -rw-r--r-- | qpid/cpp/bindings/qpid/dotnet/src/Address.cpp | 2 | ||||
| -rw-r--r-- | qpid/cpp/bindings/qpid/dotnet/src/Connection.cpp | 2 | ||||
| -rw-r--r-- | qpid/cpp/bindings/qpid/dotnet/src/FailoverUpdates.cpp | 2 | ||||
| -rw-r--r-- | qpid/cpp/bindings/qpid/dotnet/src/Message.cpp | 2 | ||||
| -rw-r--r-- | qpid/cpp/bindings/qpid/dotnet/src/Receiver.cpp | 2 | ||||
| -rw-r--r-- | qpid/cpp/bindings/qpid/dotnet/src/Sender.cpp | 2 | ||||
| -rw-r--r-- | qpid/cpp/bindings/qpid/dotnet/src/Session.cpp | 2 |
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)
{
|
