mirror of
https://github.com/verilator/verilator.git
synced 2025-01-21 05:44:03 +00:00
b4b74d72f0
This API is used if the user copies the process using `fork` and similar OS-level mechanisms. The `at_clone` member function ensures that all model-allocated resources are re-allocated, such that the copied child process/model can simulate correctly. A typical allocated resource is the thread pool, which every model has its own pool.
16 lines
214 B
Plaintext
16 lines
214 B
Plaintext
counter = 0
|
|
counter = 1
|
|
counter = 2
|
|
counter = 3
|
|
counter = 4
|
|
counter = 5
|
|
child: here we go
|
|
counter = 6
|
|
counter = 7
|
|
counter = 8
|
|
parent: here we go
|
|
counter = 6
|
|
counter = 7
|
|
counter = 8
|
|
*-* All Finished *-*
|