Re: [ovs-dev] [PATCH 1/3] ovs-thread: Add new support for thread-specific data.

2014-01-14 Thread Ben Pfaff
On Mon, Jan 13, 2014 at 03:24:28PM -0800, Ethan Jackson wrote: > As discussed off list I'd like a comment explaining why we need the > free list. Other than that: > > Acked-by: Ethan Jackson Thanks. I added that and several other comments. diff --git a/lib/ovs-thread.c b/lib/ovs-thread.c inde

Re: [ovs-dev] [PATCH 1/3] ovs-thread: Add new support for thread-specific data.

2014-01-13 Thread Ethan Jackson
As discussed off list I'd like a comment explaining why we need the free list. Other than that: Acked-by: Ethan Jackson On Mon, Jan 13, 2014 at 11:25 AM, Ben Pfaff wrote: > A couple of times I've wanted to create a dynamic data structure that has > thread-specific data, but I've not been able

[ovs-dev] [PATCH 1/3] ovs-thread: Add new support for thread-specific data.

2014-01-13 Thread Ben Pfaff
A couple of times I've wanted to create a dynamic data structure that has thread-specific data, but I've not been able to do that because PTHREAD_KEYS_MAX is so low (POSIX says at least 128, glibc is only a little bigger at 1024). This commit introduces a new form of thread-specific data that supp