summaryrefslogtreecommitdiff
path: root/ace/Managed_Object.h
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-09-11 21:55:11 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-09-11 21:55:11 +0000
commit4b4de3d855e6589a02fe3efa4311254715cfe78c (patch)
tree5e43540b0dbec95b6f4bccd36448984a3e1322d2 /ace/Managed_Object.h
parentce7eba3904267ddab175c48044dd150f7165ffa6 (diff)
downloadATCD-4b4de3d855e6589a02fe3efa4311254715cfe78c.tar.gz
(get_object) changed type of "id" to int because it will often be passed an enum, and pass "id" by value to get_object (id)
Diffstat (limited to 'ace/Managed_Object.h')
-rw-r--r--ace/Managed_Object.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/ace/Managed_Object.h b/ace/Managed_Object.h
index c00cc52ecde..a6e827169a9 100644
--- a/ace/Managed_Object.h
+++ b/ace/Managed_Object.h
@@ -60,7 +60,7 @@ class ACE_Managed_Object
// that it holds in calls to get_object ().
{
public:
- static int get_object (u_int &id, TYPE *&object);
+ static int get_object (int &id, TYPE *&object);
// Get the object identified by "id". If "id" is 0, allocates a new
// instance, and sets "id" to the new identifier for that instance.
// Returns 0 on success. On failure, returns -1 and sets errno to:
@@ -69,11 +69,11 @@ public:
// ENOSPC if no more table slots are available: see the
// ACE_MAX_MANAGED_OBJECTS config variable.
- static TYPE *get_object (u_int &id);
+ static TYPE *get_object (int id);
// Get the object identified by "id". Returns a pointer to the
- // object, or 0 if any error was encountered. Because no other
- // error indication is provided, it should _only_ be used for
- // accessing preallocated objects.
+ // object, or 0 if any error was encountered (and sets errno to
+ // ENOENT). Because no other error indication is provided, it
+ // should _only_ be used for accessing preallocated objects.
};
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)