[erlang-questions] locking in inet_drv.c

Ulf Wiger <>
Mon May 11 17:15:17 CEST 2009


I'm reading inet_drv.c, and came across this comment (R13B):

/*
  * XXX
  * The erts_smp_spin_* functions should not be used by drivers (but this
  * driver is special). Replace when driver locking api has been 
implemented.
  * /rickard
  */
#define BUFSTK_LOCK     erts_smp_spin_lock(&inet_buffer_stack_lock);
#define BUFSTK_UNLOCK   erts_smp_spin_unlock(&inet_buffer_stack_lock);


It may not matter much, but...
Hasn't the driver locking api been implemented now?

BR,
Ulf W
-- 
Ulf Wiger
CTO, Erlang Training & Consulting Ltd
http://www.erlang-consulting.com



More information about the erlang-questions mailing list