MCPcopy Create free account
hub / github.com/boostorg/compute / BOOST_COMPUTE_CL_CALLBACK callback

Function BOOST_COMPUTE_CL_CALLBACK callback

test/test_event.cpp:36–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34static bool callback_invoked = false;
35
36static void BOOST_COMPUTE_CL_CALLBACK
37callback(cl_event event, cl_int status, void *user_data)
38{
39 std::lock_guard<std::mutex> lock(callback_mutex);
40 callback_invoked = true;
41 callback_condition_variable.notify_one();
42}
43
44BOOST_AUTO_TEST_CASE(event_callback)
45{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected