17067Snate@binkert.org/*
27067Snate@binkert.org * Copyright (c) 2003-2005 The Regents of The University of Michigan
37067Snate@binkert.org * All rights reserved.
47067Snate@binkert.org *
57067Snate@binkert.org * Redistribution and use in source and binary forms, with or without
67067Snate@binkert.org * modification, are permitted provided that the following conditions are
77067Snate@binkert.org * met: redistributions of source code must retain the above copyright
87067Snate@binkert.org * notice, this list of conditions and the following disclaimer;
97067Snate@binkert.org * redistributions in binary form must reproduce the above copyright
107067Snate@binkert.org * notice, this list of conditions and the following disclaimer in the
117067Snate@binkert.org * documentation and/or other materials provided with the distribution;
127067Snate@binkert.org * neither the name of the copyright holders nor the names of its
137067Snate@binkert.org * contributors may be used to endorse or promote products derived from
147067Snate@binkert.org * this software without specific prior written permission.
157067Snate@binkert.org *
167067Snate@binkert.org * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
177067Snate@binkert.org * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
187067Snate@binkert.org * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
197067Snate@binkert.org * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
207067Snate@binkert.org * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
217067Snate@binkert.org * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
227067Snate@binkert.org * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
237067Snate@binkert.org * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
247067Snate@binkert.org * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
257067Snate@binkert.org * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
267067Snate@binkert.org * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
277067Snate@binkert.org *
287067Snate@binkert.org * Authors: Nathan Binkert
297067Snate@binkert.org */
307067Snate@binkert.org
318902Sandreas.hansson@arm.com#include "base/callback.hh"
327067Snate@binkert.org
337067Snate@binkert.orgCallbackQueue::~CallbackQueue()
347067Snate@binkert.org{
357067Snate@binkert.org    queue::iterator i = callbacks.begin();
367067Snate@binkert.org    queue::iterator end = callbacks.end();
377067Snate@binkert.org    for (; i != end; ++i)
387067Snate@binkert.org        (*i)->autoDestruct();
397067Snate@binkert.org}
40