1/* 2 * Copyright 2018 Google, Inc. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are 6 * met: redistributions of source code must retain the above copyright 7 * notice, this list of conditions and the following disclaimer; 8 * redistributions in binary form must reproduce the above copyright --- 46 unchanged lines hidden (view full) --- 55 56 if (!name || name[0] == '\0') { 57 if (method) 58 name = ::sc_core::sc_gen_unique_name("method_p"); 59 else 60 name = ::sc_core::sc_gen_unique_name("thread_p"); 61 } 62 |
63 Process *proc; 64 if (method) |
65 proc = new Method(name, func); |
66 else |
67 proc = new Thread(name, func); |
68 69 if (opts) { 70 for (auto e: opts->_events) 71 proc->addStatic(new PendingSensitivityEvent(proc, e)); 72 73 for (auto p: opts->_ports) 74 proc->addStatic(new PendingSensitivityPort(proc, p)); 75 --- 150 unchanged lines hidden --- |