Re(2): Thread safe programming
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.