sc_spawn.hh (12839:45ad57043567) | sc_spawn.hh (12879:3d1110d82f87) |
---|---|
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 --- 91 unchanged lines hidden (view full) --- 100 sc_spawn_warn_unimpl(__PRETTY_FUNCTION__); 101 return sc_process_handle(); 102} 103 104#define sc_bind boost::bind 105#define sc_ref(r) boost::ref(r) 106#define sc_cref(r) boost::cref(r) 107 | 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 --- 91 unchanged lines hidden (view full) --- 100 sc_spawn_warn_unimpl(__PRETTY_FUNCTION__); 101 return sc_process_handle(); 102} 103 104#define sc_bind boost::bind 105#define sc_ref(r) boost::ref(r) 106#define sc_cref(r) boost::cref(r) 107 |
108#define SC_FORK /* Implementation defined */ 109#define SC_JOIN /* Implementation defined */ | 108#define SC_FORK \ 109{ \ 110 ::sc_core::sc_process_handle forkees[] = { |
110 | 111 |
112#define SC_JOIN \ 113 }; /* TODO wait for the forkees. */ \ 114} 115 116// Non-standard 117#define SC_CJOIN SC_JOIN 118 |
|
111} // namespace sc_core 112 113namespace sc_unnamed 114{ 115 116typedef int ImplementationDefined; 117extern ImplementationDefined _1; 118extern ImplementationDefined _2; 119extern ImplementationDefined _3; 120extern ImplementationDefined _4; 121extern ImplementationDefined _5; 122extern ImplementationDefined _6; 123extern ImplementationDefined _7; 124extern ImplementationDefined _8; 125extern ImplementationDefined _9; 126 127} // namespace sc_unnamed 128 129#endif //__SYSTEMC_EXT_CORE_SC_SPAWN_HH__ | 119} // namespace sc_core 120 121namespace sc_unnamed 122{ 123 124typedef int ImplementationDefined; 125extern ImplementationDefined _1; 126extern ImplementationDefined _2; 127extern ImplementationDefined _3; 128extern ImplementationDefined _4; 129extern ImplementationDefined _5; 130extern ImplementationDefined _6; 131extern ImplementationDefined _7; 132extern ImplementationDefined _8; 133extern ImplementationDefined _9; 134 135} // namespace sc_unnamed 136 137#endif //__SYSTEMC_EXT_CORE_SC_SPAWN_HH__ |