[Ace-users] suspended thread can automatically execute, but I don't call resume()

zhangwei zhangwei.chs at gmail.com
Mon Jul 9 04:49:34 CDT 2007


code:
int create_result = conn_handler.activate(
                                THR_NEW_LWP | THR_JOINABLE |
THR_SUSPENDED,
                                1,1,
                                ACE_THR_PRI_OTHER_DEF);
        ACE_ASSERT(create_result == 0);

        ACE_TRY_CHECK

OS : RedHat

after acrivate(), I don't call resume() and wait() in main function.
however, when program running the thread automatically
execute, please why?

thanks



More information about the Ace-users mailing list