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; --- 46 unchanged lines hidden (view full) --- 55 virtual ~PollEvent(); 56 57 void disable(); 58 void enable(); 59 virtual void process(int revent) = 0; 60 61 bool queued() { return queue != 0; } 62 |
63 void serialize(CheckpointOut &cp) const override; 64 void unserialize(CheckpointIn &cp) override; |
65}; 66 67class PollQueue 68{ 69 private: 70 typedef std::vector<PollEvent *> eventvec_t; 71 eventvec_t events; 72 --- 20 unchanged lines hidden --- |