MCPcopy Create free account
hub / github.com/arvidn/libtorrent / fun

Function fun

test/test_threads.cpp:48–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46namespace {
47
48void fun(std::condition_variable* s, std::mutex* m, int* waiting, int i)
49{
50 std::printf("thread %d waiting\n", i);
51 std::unique_lock<std::mutex> l(*m);
52 *waiting += 1;
53 s->wait(l);
54 std::printf("thread %d done\n", i);
55}
56
57void increment(std::condition_variable* s, std::mutex* m, int* waiting, std::atomic<int>* c)
58{

Callers 5

test_unaligned_readFunction · 0.85
post_torrentFunction · 0.85
copy_stringMethod · 0.85
apply_pad_filesFunction · 0.85
run_all_combinationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected