| 299 | }; |
| 300 | |
| 301 | static void* thread_func(void* arg) |
| 302 | { |
| 303 | smart_ptr<counter>* pp = reinterpret_cast<smart_ptr<counter>*>(arg); |
| 304 | (*pp)->post_increment(); |
| 305 | *pp = NULL; |
| 306 | delete pp; |
| 307 | return NULL; |
| 308 | } |
| 309 | |
| 310 | int main(int argc, char** argv) |
| 311 | { |
nothing calls this directly
no test coverage detected