root.cc (11800:54436a1784dc) | root.cc (12088:ffd7952e9929) |
---|---|
1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * Copyright (c) 2011 Advanced Micro Devices, Inc. 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 --- 90 unchanged lines hidden (view full) --- 99void 100Root::timeSyncSpinThreshold(Time newThreshold) 101{ 102 bool en = timeSyncEnabled(); 103 _spinThreshold = newThreshold; 104 timeSyncEnable(en); 105} 106 | 1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * Copyright (c) 2011 Advanced Micro Devices, Inc. 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 --- 90 unchanged lines hidden (view full) --- 99void 100Root::timeSyncSpinThreshold(Time newThreshold) 101{ 102 bool en = timeSyncEnabled(); 103 _spinThreshold = newThreshold; 104 timeSyncEnable(en); 105} 106 |
107Root::Root(RootParams *p) : SimObject(p), _enabled(false), 108 _periodTick(p->time_sync_period), syncEvent(this) | 107Root::Root(RootParams *p) 108 : SimObject(p), _enabled(false), _periodTick(p->time_sync_period), 109 syncEvent([this]{ timeSync(); }, name()) |
109{ 110 _period.setTick(p->time_sync_period); 111 _spinThreshold.setTick(p->time_sync_spin_threshold); 112 113 assert(_root == NULL); 114 _root = this; 115 lastTime.setTimer(); 116 --- 46 unchanged lines hidden --- | 110{ 111 _period.setTick(p->time_sync_period); 112 _spinThreshold.setTick(p->time_sync_spin_threshold); 113 114 assert(_root == NULL); 115 _root = this; 116 lastTime.setTimer(); 117 --- 46 unchanged lines hidden --- |