eventq.cc (8648:974f0e4a9ff6) | eventq.cc (9328:2fa2b16bdfc2) |
---|---|
1/* 2 * Copyright (c) 2000-2005 The Regents of The University of Michigan 3 * Copyright (c) 2008 The Hewlett-Packard Development Company 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 189 unchanged lines hidden (view full) --- 198 // the 'in bin' list and point to the next bin list 199 head = head->nextBin; 200 } 201 202 // handle action 203 if (!event->squashed()) { 204 event->process(); 205 if (event->isExitEvent()) { | 1/* 2 * Copyright (c) 2000-2005 The Regents of The University of Michigan 3 * Copyright (c) 2008 The Hewlett-Packard Development Company 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 189 unchanged lines hidden (view full) --- 198 // the 'in bin' list and point to the next bin list 199 head = head->nextBin; 200 } 201 202 // handle action 203 if (!event->squashed()) { 204 event->process(); 205 if (event->isExitEvent()) { |
206 assert(!event->flags.isSet(Event::AutoDelete)); // would be silly | 206 assert(!event->flags.isSet(Event::AutoDelete) || 207 !event->flags.isSet(Event::IsMainQueue)); // would be silly |
207 return event; 208 } 209 } else { 210 event->flags.clear(Event::Squashed); 211 } 212 213 if (event->flags.isSet(Event::AutoDelete) && !event->scheduled()) 214 delete event; --- 218 unchanged lines hidden --- | 208 return event; 209 } 210 } else { 211 event->flags.clear(Event::Squashed); 212 } 213 214 if (event->flags.isSet(Event::AutoDelete) && !event->scheduled()) 215 delete event; --- 218 unchanged lines hidden --- |