| 26 | // ---------------------------------------------------------------------------------------- |
| 27 | |
| 28 | cuda_data_void_ptr weak_cuda_data_void_ptr:: |
| 29 | lock() const |
| 30 | { |
| 31 | auto ptr = pdata.lock(); |
| 32 | if (ptr) |
| 33 | { |
| 34 | cuda_data_void_ptr temp; |
| 35 | temp.pdata = ptr; |
| 36 | temp.num = num; |
| 37 | return temp; |
| 38 | } |
| 39 | else |
| 40 | { |
| 41 | return cuda_data_void_ptr(); |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | // ----------------------------------------------------------------------------------- |
| 46 | // ----------------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected