]> git.ipfire.org Git - thirdparty/squid.git/blob - src/ipc/StrandCoord.cc
SMP Cache Manager, Phase2 implementation.
[thirdparty/squid.git] / src / ipc / StrandCoord.cc
1 /*
2 * $Id$
3 *
4 * DEBUG: section 54 Interprocess Communication
5 *
6 */
7
8
9 #include "config.h"
10 #include "ipc/Messages.h"
11 #include "ipc/StrandCoord.h"
12 #include "ipc/TypedMsgHdr.h"
13
14
15 Ipc::StrandCoord::StrandCoord(): kidId(-1), pid(0)
16 {
17 }
18
19 Ipc::StrandCoord::StrandCoord(int aKidId, pid_t aPid): kidId(aKidId), pid(aPid)
20 {
21 }
22
23 Ipc::StrandCoord::StrandCoord(const TypedMsgHdr &hdrMsg): kidId(-1), pid(0)
24 {
25 hdrMsg.checkType(mtRegistration);
26 hdrMsg.getPod(*this);
27 }
28
29 void Ipc::StrandCoord::pack(TypedMsgHdr &hdrMsg) const
30 {
31 hdrMsg.setType(mtRegistration);
32 hdrMsg.putPod(*this);
33 }