MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / phfunc

Function phfunc

src/tests/functional/func-thread.cpp:53–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52template <typename M>
53unsigned __stdcall
54phfunc(void* vm)
55{
56 unsigned ret;
57 M* m = (M*) vm;
58
59 cl_uint err = m->run();
60 clWaitForEvents(1, m->outEvent);
61
62 err = m->getResult();
63 ret = (err == CL_SUCCESS)? 1:0;
64 _endthreadex(ret);
65 return ret;
66}
67
68#else /* defined(_MCS_VER) */
69#include "pthread.h"

Callers

nothing calls this directly

Calls 2

getResultMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected