lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #5468] sockets.c: Create socksem and selectsem in an


From: Frédéric BERNON
Subject: [lwip-devel] [patch #5468] sockets.c: Create socksem and selectsem in an init-function
Date: Mon, 26 Feb 2007 16:04:02 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2

Follow-up Comment #3, patch #5468 (project lwip):

I think that a simple way to avoid the CHANGELOG and to add the modification
is to only add from the patch:

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

and to let original code like :

if (!...)
... = sys_sem_new(1); 

So, ports are always compatibles, and functionnality is added
(multithread-safe) to people using it.

Note: I think that lwip_init should be a better name (all others sockets.c
functions are prefixed by lwip_).




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?5468>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/





reply via email to

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