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; --- 43 unchanged lines hidden (view full) --- 52 53///////////////////////////////////////////////////// 54// 55PollEvent::PollEvent(int _fd, int _events) 56 : queue(NULL), enabled(true) 57{ 58 pfd.fd = _fd; 59 pfd.events = _events; |
60 pfd.revents = 0; |
61} 62 63PollEvent::~PollEvent() 64{ 65 if (queue) 66 queue->remove(this); 67} 68 --- 160 unchanged lines hidden --- |