1/*****************************************************************************
2
3  Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
4  more contributor license agreements.  See the NOTICE file distributed
5  with this work for additional information regarding copyright ownership.
6  Accellera licenses this file to you under the Apache License, Version 2.0
7  (the "License"); you may not use this file except in compliance with the
8  License.  You may obtain a copy of the License at
9
10    http://www.apache.org/licenses/LICENSE-2.0
11
12  Unless required by applicable law or agreed to in writing, software
13  distributed under the License is distributed on an "AS IS" BASIS,
14  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
15  implied.  See the License for the specific language governing
16  permissions and limitations under the License.
17
18 *****************************************************************************/
19
20/*****************************************************************************
21
22  sc_cthread_process.cpp -- Clocked thread implementation.
23
24  Original Author: Andy Goodrich, Forte Design Systems, 4 August 2005
25
26
27 CHANGE LOG APPEARS AT THE END OF THE FILE
28 *****************************************************************************/
29
30#include "sysc/kernel/sc_cthread_process.h"
31#include "sysc/kernel/sc_simcontext_int.h"
32
33namespace sc_core {
34
35//------------------------------------------------------------------------------
36//"sc_cthread_process::dont_initialize"
37//
38// This virtual method sets the initialization switch for this object instance.
39//------------------------------------------------------------------------------
40void sc_cthread_process::dont_initialize( bool /* dont */ )
41{
42    SC_REPORT_WARNING( SC_ID_DONT_INITIALIZE_, 0 );
43}
44
45//------------------------------------------------------------------------------
46//"sc_cthread_process::sc_cthread_process"
47//
48// This is the object instance constructor for this class.
49//------------------------------------------------------------------------------
50sc_cthread_process::sc_cthread_process( const char* name_p,
51    bool free_host, SC_ENTRY_FUNC method_p,
52    sc_process_host* host_p, const sc_spawn_options* opt_p
53):
54    sc_thread_process(name_p, free_host, method_p, host_p, opt_p)
55{
56    m_dont_init = true;
57    m_process_kind = SC_CTHREAD_PROC_;
58}
59
60//------------------------------------------------------------------------------
61//"sc_cthread_process::~sc_cthread_process"
62//
63// This is the object instance constructor for this class.
64//------------------------------------------------------------------------------
65sc_cthread_process::~sc_cthread_process()
66{
67}
68
69} // namespace sc_core
70
71// $Log: sc_cthread_process.cpp,v $
72// Revision 1.11  2011/08/26 20:46:09  acg
73//  Andy Goodrich: moved the modification log to the end of the file to
74//  eliminate source line number skew when check-ins are done.
75//
76// Revision 1.10  2011/08/15 16:43:24  acg
77//  Torsten Maehne: changes to remove unused argument warnings.
78//
79// Revision 1.9  2011/02/18 20:27:14  acg
80//  Andy Goodrich: Updated Copyrights.
81//
82// Revision 1.8  2011/02/13 21:47:37  acg
83//  Andy Goodrich: update copyright notice.
84//
85// Revision 1.7  2011/02/11 13:25:24  acg
86//  Andy Goodrich: Philipp A. Hartmann's changes:
87//    (1) Removal of SC_CTHREAD method overloads.
88//    (2) New exception processing code.
89//
90// Revision 1.6  2011/02/01 21:00:35  acg
91//  Andy Goodrich: removed throw_reset as it is now handled by parent
92//  sc_thread_process::throw_reset().
93//
94// Revision 1.5  2011/01/18 20:10:44  acg
95//  Andy Goodrich: changes for IEEE1666_2011 semantics.
96//
97// Revision 1.4  2009/07/28 01:10:53  acg
98//  Andy Goodrich: updates for 2.3 release candidate.
99//
100// Revision 1.3  2009/05/22 16:06:29  acg
101//  Andy Goodrich: process control updates.
102//
103// Revision 1.2  2008/05/22 17:06:25  acg
104//  Andy Goodrich: updated copyright notice to include 2008.
105//
106// Revision 1.1.1.1  2006/12/15 20:20:05  acg
107// SystemC 2.3
108//
109// Revision 1.6  2006/04/20 17:08:16  acg
110//  Andy Goodrich: 3.0 style process changes.
111//
112// Revision 1.5  2006/04/11 23:13:20  acg
113//   Andy Goodrich: Changes for reduced reset support that only includes
114//   sc_cthread, but has preliminary hooks for expanding to method and thread
115//   processes also.
116//
117// Revision 1.4  2006/01/24 20:49:04  acg
118// Andy Goodrich: changes to remove the use of deprecated features within the
119// simulator, and to issue warning messages when deprecated features are used.
120//
121// Revision 1.3  2006/01/13 18:44:29  acg
122// Added $Log to record CVS changes into the source.
123//
124