lkml.org 
[lkml]   [2000]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] solution for the inet_ntoa problem, buffer allocator
On Sat, 8 Jul 2000, Olaf Titz wrote:

> > > sometimes use sort of a round-robbin buffer, shared by several
> > > functions. This way, I can call the same function several times
> > > without allocating memory, and the number of calls is just limited
> > > by the total size. Here comes an example (from scratch, completely
> > > untested).
> > >
> > > Any comments ?
> >
> > Not threadsafe.
>
> This one is threadsafe (in the limit given by the number of buffers,
> you probably want to configure that depending on the number of CPUs).

But now it's a brand new lock contention point! That's not much of an
improvement. It took me all of 20 minutes to replace all the instances of
inet_ntoa with inet_ntoa2, why all the effort to make the inherently
troubled inet_ntoa work?

--
"Love the dolphins," she advised him. "Write by W.A.S.T.E.."


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.150 / U:0.788 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site