| 455 | size_t* counter_; |
| 456 | |
| 457 | void release() |
| 458 | { |
| 459 | if ((counter_) && (--(*counter_) == 0)) |
| 460 | { |
| 461 | delete counter_; |
| 462 | CUMAT_SAFE_CALL(cudaEventDestroy(event_)); |
| 463 | } |
| 464 | } |
| 465 | |
| 466 | public: |
| 467 | Event() |
nothing calls this directly
no outgoing calls
no test coverage detected