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)
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)
100{
101 UNSERIALIZE_SCALAR(pfd.fd);
102 UNSERIALIZE_SCALAR(pfd.events);
103 UNSERIALIZE_SCALAR(enabled);
104}
105
106/////////////////////////////////////////////////////
107//
--- 124 unchanged lines hidden ---
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)
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)
100{
101 UNSERIALIZE_SCALAR(pfd.fd);
102 UNSERIALIZE_SCALAR(pfd.events);
103 UNSERIALIZE_SCALAR(enabled);
104}
105
106/////////////////////////////////////////////////////
107//
--- 124 unchanged lines hidden ---