DEV/C&C++

terminate called without an active exception

pu928 2016. 10. 11. 09:24
반응형

class의 멤버 함수에서 thread 실행 시 에러



함수에서 thread 실행 후 그냥 함수가 종료 될 경우 아래와 같은 에러가 발생

[root@TMSA thread]# ./thread

terminate called without an active exception

중지됨 



thread 실행 후 join 또는 detach 로 핸들링 해야함.



반응형