003 File Manager
Current Path:
/usr/src/tools/regression/pthread/unwind
usr
/
src
/
tools
/
regression
/
pthread
/
unwind
/
📁
..
📄
Makefile
(537 B)
📄
Test.cpp
(578 B)
📄
catch_pthread_exit.cpp
(498 B)
📄
cond_wait_cancel.cpp
(626 B)
📄
cond_wait_cancel2.cpp
(795 B)
📄
main_thread_exit.cpp
(229 B)
📄
sem_wait_cancel.cpp
(470 B)
📄
thread_normal_exit.cpp
(391 B)
Editing: Test.cpp
/* $FreeBSD$ */ int destructed; int destructed2; class Test { public: Test() { printf("Test::Test()\n"); } ~Test() { printf("Test::~Test()\n"); destructed = 1; } }; void cleanup_handler(void *arg) { destructed2 = 1; printf("%s()\n", __func__); } void check_destruct(void) { if (!destructed) printf("Bug, object destructor is not called\n"); else printf("OK\n"); } void check_destruct2(void) { if (!destructed) printf("Bug, object destructor is not called\n"); else if (!destructed2) printf("Bug, cleanup handler is not called\n"); else printf("OK\n"); }
Upload File
Create Folder