• 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
Re: printf
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: printf


  • Subject: Re: printf
  • From: Richard Somers <email@hidden>
  • Date: Fri, 14 Dec 2007 09:51:26 -0700

What about this stated functionality of NSLogv from Apple's documentation.
"Output from NSLogv is serialized, in that only one thread in a process can be doing the writing/logging described above at a time. All attempts at writing/logging a message complete before the next thread can begin its attempts."


"The effects of NSLogv are not serialized with subsystems other than those discussed above (such as the standard I/O package) and do not produce side effects on those subsystems (such as causing buffered output to be flushed, which may be undesirable)."

Does a printf provide this or is this something to worry about? I just finished writing my own simple replacement for NSLog several days ago using printf and was wondering if I was going to run into problems down the road.

Richard

On Dec 13, 2007, at 8:03 AM, Clark Cox wrote:

No, but it's relatively easy to write your own:

_______________________________________________

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: printf
      • From: mmalc crawford <email@hidden>
    • Re: printf
      • From: "Clark Cox" <email@hidden>
    • Re: printf
      • From: John Stiles <email@hidden>
References: 
 >printf (From: Roland Silver <email@hidden>)
 >Re: printf (From: "Clark Cox" <email@hidden>)

  • Prev by Date: Re: Adding a zip file to the resources doesn't add it in the built application's resource path
  • Next by Date: Re: Xcode cocoa project with c++
  • Previous by thread: Re: printf
  • Next by thread: Re: printf
  • Index(es):
    • Date
    • Thread