• 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(2): Thread safe programming
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re(2): Thread safe programming


  • Subject: Re(2): Thread safe programming
  • From: Jens Bauer <email@hidden>
  • Date: Wed, 5 Jun 2002 18:55:23 +0200

Hi Pietrzak,,

On Wed, 5 Jun, 2002, Pietrzak, Bryan <email@hidden> wrote:

>Wow. That's a pretty nasty implementation. Have you considered what happens
>when src points to read-only memory?

That's also 'nice'. ;)
I think the (Windows) programmer did this for speed; I follow him in that
there are only 1 conditional-test, but the 2 writes and 1 read are real
slow compared to a register comparison, so it will hardly ever pay.

>I think const is one of the most useful constructs and I *never* cast away
>const-ness and I always use it when I can.

:)

(If anyone wondered why this was also sent to the MacNetworkProg list,
it's because it's very tempting using threads or interrupts when doing
networking)


Love,
Jens

--
Jens Bauer, Faster Software.
-Let's make the World better, shall we ?
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

References: 
 >RE: Thread safe programming (From: "Pietrzak, Bryan" <email@hidden>)

  • Prev by Date: RE: Thread safe programming
  • Next by Date: Goodbye Ugly Authorization Dialog
  • Previous by thread: RE: Thread safe programming
  • Next by thread: Goodbye Ugly Authorization Dialog
  • Index(es):
    • Date
    • Thread