summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/cluster/Cpg.h
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-01-29 20:29:46 +0000
committerAlan Conway <aconway@apache.org>2008-01-29 20:29:46 +0000
commit5cc7ee2784983f4875d1b8eca2db75b431e91a6f (patch)
tree20f3e1133928e8df352e24b23231002bd4887576 /cpp/src/qpid/cluster/Cpg.h
parentbbd5c6c55f47ec973cbf035271ee8a276cb11217 (diff)
downloadqpid-python-5cc7ee2784983f4875d1b8eca2db75b431e91a6f.tar.gz
Re-enabled build of cluster code when openais is installed.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@616507 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/Cpg.h')
-rw-r--r--cpp/src/qpid/cluster/Cpg.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/cpp/src/qpid/cluster/Cpg.h b/cpp/src/qpid/cluster/Cpg.h
index 92e2e591b8..09b6996cc0 100644
--- a/cpp/src/qpid/cluster/Cpg.h
+++ b/cpp/src/qpid/cluster/Cpg.h
@@ -57,12 +57,10 @@ class Cpg : public Dispatchable {
struct Id {
uint64_t id;
- Id() : id(0) {}
+ Id(uint64_t n=0) : id(n) {}
Id(uint32_t nodeid, uint32_t pid) { id=(uint64_t(nodeid)<<32)+ pid; }
Id(const cpg_address& addr) : id(Id(addr.nodeid, addr.pid)) {}
- static Id self(Cpg& cpg);
-
operator uint64_t() const { return id; }
uint32_t nodeId() const { return id >> 32; }
pid_t pid() const { return id & 0xFFFF; }
@@ -132,8 +130,6 @@ class Cpg : public Dispatchable {
cpg_handle_t getHandle() const { return handle; }
- uint32_t getLocalNoideId() const;
-
private:
class Handles;
struct ClearHandleOnExit;