diff options
author | Steve Huston <shuston@riverace.com> | 2009-08-04 14:45:29 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2009-08-04 14:45:29 +0000 |
commit | b13abdbfa0dad539e913aeb07f935a815e7edbfb (patch) | |
tree | c480110f6a0253c1e67fc7c10a82c7635f438ede /ACE/ace/Configuration.cpp | |
parent | 75e02a0a64b5da4b1f67e99d4cc19fd516ff54e2 (diff) | |
download | ATCD-b13abdbfa0dad539e913aeb07f935a815e7edbfb.tar.gz |
ChangeLogTag:Tue Aug 4 14:32:24 UTC 2009 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ACE/ace/Configuration.cpp')
-rw-r--r-- | ACE/ace/Configuration.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ACE/ace/Configuration.cpp b/ACE/ace/Configuration.cpp index 68df0fdbbfe..fd0f0b64df9 100644 --- a/ACE/ace/Configuration.cpp +++ b/ACE/ace/Configuration.cpp @@ -1259,6 +1259,12 @@ ACE_Configuration_Heap::~ACE_Configuration_Heap (void) int ACE_Configuration_Heap::open (size_t default_map_size) { + if (this->allocator_ != 0) + { + errno = EBUSY; + return -1; + } + default_map_size_ = default_map_size; // Create the allocator with the appropriate options. // The name used for the lock is the same as one used @@ -1275,6 +1281,12 @@ ACE_Configuration_Heap::open (const ACE_TCHAR* file_name, void* base_address, size_t default_map_size) { + if (this->allocator_ != 0) + { + errno = EBUSY; + return -1; + } + default_map_size_ = default_map_size; // Make sure that the file name is of the legal length. |