Download third_party/tracy/examples/fibers.cpp from kimjunhan/vkgs-sim: direct link, hf CLI and curl.
- Browser
- Download file 589 Bytes
-
https://huggingface.co/kimjunhan/vkgs-sim/resolve/main/third_party/tracy/examples/fibers.cpp
- Command line
-
hf download hf://kimjunhan/vkgs-sim/third_party/tracy/examples/fibers.cpp
-
curl -L -o fibers.cpp https://huggingface.co/kimjunhan/vkgs-sim/resolve/main/third_party/tracy/examples/fibers.cpp
589 Bytes
| // g++ fibers.cpp ../public/TracyClient.cpp -I../public/tracy -DTRACY_ENABLE -DTRACY_FIBERS -lpthread -ldl | |
| const char* fiber = "job1"; | |
| TracyCZoneCtx zone; | |
| int main() | |
| { | |
| std::thread t1( [] { | |
| TracyFiberEnter( fiber ); | |
| TracyCZone( ctx, 1 ); | |
| zone = ctx; | |
| sleep( 1 ); | |
| TracyFiberLeave; | |
| }); | |
| t1.join(); | |
| std::thread t2( [] { | |
| TracyFiberEnter( fiber ); | |
| sleep( 1 ); | |
| TracyCZoneEnd( zone ); | |
| TracyFiberLeave; | |
| }); | |
| t2.join(); | |
| } | |