[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE : [lwip-users] Creation of socksem and selectsem in sockets.c

From: Frédéric BERNON
Subject: RE : [lwip-users] Creation of socksem and selectsem in sockets.c
Date: Wed, 6 Sep 2006 16:18:58 +0200

Hi group,

Agree with you, I have added this code in sockets.c :

void socket_init()
{ socksem   = sys_sem_new(1);
  selectsem = sys_sem_new(1);

And I call it after netif_init();
Frédéric BERNON 
Chef de projet informatique 
Microsoft Certified Professional 
Tél. : +33 (0)4-67-87-61-10 
Fax. : +33 (0)4-67-70-85-44 
Email : address@hidden 
Web Site : http://www.hymatom.fr 

-----Message d'origine-----
De : address@hidden [mailto:address@hidden De la part de address@hidden
Envoyé : mercredi 6 septembre 2006 13:00
À : Mailing list for lwIP users
Objet : Re: [lwip-users] Creation of socksem and selectsem in sockets.c

address@hidden wrote:
> Hi all,
> I have another question regarding those 2 semaphores:
> Wouldn't it be nicer to create the semaphores in a function like
> sock_init() instead of creating them when first needed?


Totally agree. I may propose this change if I can figure out the method of 
doing this...

Kind regards,

Clive Wilson

lwip-users mailing list
address@hidden http://lists.nongnu.org/mailman/listinfo/lwip-users

reply via email to

[Prev in Thread] Current Thread [Next in Thread]