[openbeosnetteam] Re: IP protocol module

"Waldemar Kornewald" <Waldemar.Kornewald@xxxxxx> wrote:
> I have had this question for a long time:
> Why is the get_ip_id() function in the ip module using semaphores 
> instead of
> atomic_add? The comment asks this question, too, and I cannot think 
> of any
> problems that would arise from using atomic_add except that we should 
> use
> int32 instead of uint16.
> 
> Any ideas?

Yes, the previous maintainer obviously wasn't so good with locking. 
Just go ahead and change it.

Adios...
   Axel.


Other related posts: