From: Alex M. <kil...@ne...> - 2005-04-18 15:41:14
|
(message (Hello 'Sam) (you :wrote :on '(Mon, 18 Apr 2005 09:46:51 -0400)) ( ??>> looks like best thing is to use compiler implementation of TLS -- it's ??>> easy, fast and stable. under win32 MSVC has it, new linux and freebsd ??>> also have it with gcc. Sam> what is TLS Sam> (http://www.gnu.org/software/gnutls/ ???) :) no, it is Thread Local Storage. Bruno had idea to keep thread-local stuff somewhere at (SP & 0xff800000), but there was some development in compilers and OS kernels (win32's msvc already had this feature in msvc6 7 years ago, at least; it appeared in gcc3.3 and required some support from OS -- implemented in new linuxes and freebsd), so compilers can handle this automatically: __thread clisp_thread_t *cur_thread; or __declspec(thread) clisp_thread_t *cur_thread; and it will be thread-local without any hassle.. ) (With-best-regards '(Alex Mizrahi) :aka 'killer_storm) "People who lust for the Feel of keys on their fingertips (c) Inity") |