Deleted Added
sdiff udiff text old ( 7863:f84bfd45d607 ) new ( 7942:c122a3e1b204 )
full compact
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * Copyright (c) 2011 Advanced Micro Devices
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

--- 94 unchanged lines hidden (view full) ---

103 _periodTick(p->time_sync_period), syncEvent(this)
104{
105 _period.setTick(p->time_sync_period);
106 _spinThreshold.setTick(p->time_sync_spin_threshold);
107
108 assert(_root == NULL);
109 _root = this;
110 lastTime.setTimer();
111 timeSyncEnable(p->time_sync_enable);
112}
113
114Root *
115RootParams::create()
116{
117 static bool created = false;
118 if (created)
119 panic("only one root object allowed!");
120
121 created = true;
122
123 return new Root(this);
124}