×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Nov 2003
    Location
    China
    Posts
    94

    What is the difference between Rthread::Kill() and Rthread::Close()?

    What is the difference between Rthread::Kill() and Rthread::Close()?
    I used "new" to create an object in a thread,and can the object be deleted automatically if I use Rthread::Kill() to end the thread?
    And if I want to end a thread,which method can I use?

  2. #2
    Registered User
    Join Date
    Aug 2003
    Location
    Oulu, Finland
    Posts
    1,122
    RThread::Close() (inherited from RHandleBase) just decrements the object reference counter. Remember that R objects are just handles to some kernel-side objects. RThread::Kill() ends the referenced thread.

    Lauri

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×