Deleted Added
sdiff udiff text old ( 11800:54436a1784dc ) new ( 12088:ffd7952e9929 )
full compact
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)
108 : SimObject(p), _enabled(false), _periodTick(p->time_sync_period),
109 syncEvent([this]{ timeSync(); }, name())
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 ---