Thomas Thomas, le Mon 30 Apr 2012 16:30:00 -0700, a écrit :
> Nextly, it uses cthread_data to store a pointer to a thread-specific buffer
> that it uses in paging. As I see it: all threads are created when the pager
> starts up, and no threads are created afterward. Thus, I could achieve the
> same result by using a hash to map between the thread handles and the
> buffer pointers. Would this be a good idea/efficient? Mainly, I just want
> your thoughts.

But why doing that?  It'd be simpler to just use a __thread variable.

Samuel

Reply via email to