• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
POSIX thread in cocoa project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

POSIX thread in cocoa project


  • Subject: POSIX thread in cocoa project
  • From: Luca Ciciriello <email@hidden>
  • Date: Sat, 23 Feb 2008 16:17:48 +0000
  • Importance: Normal

Hi All.

I've added to a cocoa project a .cpp file. In this file I've implemented a multithreading system using POSIX. Now, from my cocoa app's window I can use the functionality of the new added cpp file (using a .mm file as interface).
The problem is that I'm able to create a detached thread with the POSIX pthread_create, but I can't cancel the thread using the function pthread_cancel. The return code of this function is 0 (the function is executed without errors), but the specified thread doesn't end.

I'm using Xcode 2.5 on Mac OS 10.4.11

Any idea?

Luca.
www.mitosrl.com
_________________________________________________________________
Who's friends with who and co-starred in what?
http://www.searchgamesbox.com/celebrityseparation.shtml_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: POSIX thread in cocoa project
      • From: "A.M." <email@hidden>
  • Prev by Date: NSButton Subclass - 2 states plus tracking image
  • Next by Date: Asyncronously copying multiple files.
  • Previous by thread: Re: NSButton Subclass - 2 states plus tracking image
  • Next by thread: Re: POSIX thread in cocoa project
  • Index(es):
    • Date
    • Thread