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 
HYMATOM SA 
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 : [EMAIL PROTECTED] 
Web Site : http://www.hymatom.fr 
====================================


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


[EMAIL PROTECTED] 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?

Simon,

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
[email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users


_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to