global_event.cc (9983:2cce74fe359e) | global_event.cc (10361:280cc9b0794f) |
---|---|
1/* 2 * Copyright (c) 2011-2013 Advanced Micro Devices, Inc. 3 * Copyright (c) 2013 Mark D. Hill and David A. Wood 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 --- 20 unchanged lines hidden (view full) --- 29 * Authors: Steve Reinhardt 30 */ 31 32#include "sim/global_event.hh" 33 34std::mutex BaseGlobalEvent::globalQMutex; 35 36BaseGlobalEvent::BaseGlobalEvent(Priority p, Flags f) | 1/* 2 * Copyright (c) 2011-2013 Advanced Micro Devices, Inc. 3 * Copyright (c) 2013 Mark D. Hill and David A. Wood 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 --- 20 unchanged lines hidden (view full) --- 29 * Authors: Steve Reinhardt 30 */ 31 32#include "sim/global_event.hh" 33 34std::mutex BaseGlobalEvent::globalQMutex; 35 36BaseGlobalEvent::BaseGlobalEvent(Priority p, Flags f) |
37 : barrier(numMainEventQueues), 38 barrierEvent(numMainEventQueues, NULL) |
|
37{ | 39{ |
38 barrierEvent.resize(numMainEventQueues); 39 barrier = new Barrier(numMainEventQueues); | |
40} 41 42 43BaseGlobalEvent::~BaseGlobalEvent() 44{ 45 // see GlobalEvent::BarrierEvent::~BarrierEvent() comments 46 if (barrierEvent[0] != NULL) { 47 for (int i = 0; i < numMainEventQueues; ++i) --- 119 unchanged lines hidden --- | 40} 41 42 43BaseGlobalEvent::~BaseGlobalEvent() 44{ 45 // see GlobalEvent::BarrierEvent::~BarrierEvent() comments 46 if (barrierEvent[0] != NULL) { 47 for (int i = 0; i < numMainEventQueues; ++i) --- 119 unchanged lines hidden --- |