pollevent.cc (10476:f058e09b7d69) | pollevent.cc (10905:a6ca6831e775) |
---|---|
1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 74 unchanged lines hidden (view full) --- 83 if (enabled) return; 84 enabled = true; 85 86 if (queue) 87 queue->copy(); 88} 89 90void | 1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 74 unchanged lines hidden (view full) --- 83 if (enabled) return; 84 enabled = true; 85 86 if (queue) 87 queue->copy(); 88} 89 90void |
91PollEvent::serialize(ostream &os) | 91PollEvent::serialize(CheckpointOut &cp) const |
92{ 93 SERIALIZE_SCALAR(pfd.fd); 94 SERIALIZE_SCALAR(pfd.events); 95 SERIALIZE_SCALAR(enabled); 96} 97 98void | 92{ 93 SERIALIZE_SCALAR(pfd.fd); 94 SERIALIZE_SCALAR(pfd.events); 95 SERIALIZE_SCALAR(enabled); 96} 97 98void |
99PollEvent::unserialize(Checkpoint *cp, const std::string §ion) | 99PollEvent::unserialize(CheckpointIn &cp) |
100{ 101 UNSERIALIZE_SCALAR(pfd.fd); 102 UNSERIALIZE_SCALAR(pfd.events); 103 UNSERIALIZE_SCALAR(enabled); 104} 105 106///////////////////////////////////////////////////// 107// --- 124 unchanged lines hidden --- | 100{ 101 UNSERIALIZE_SCALAR(pfd.fd); 102 UNSERIALIZE_SCALAR(pfd.events); 103 UNSERIALIZE_SCALAR(enabled); 104} 105 106///////////////////////////////////////////////////// 107// --- 124 unchanged lines hidden --- |