--enable-pthreads option

Out of curiosity, does the --enable-pthreads switch cause ruby threads
to use pthreads, or is the option there simply for linking against
pthreaded libraries?

···

Jim Hranicky, Senior SysAdmin UF/CISE Department |
E314D CSE Building Phone (352) 392-1499 |
jfh@cise.ufl.edu http://www.cise.ufl.edu/~jfh |


                      About politics:
                 Don't worry about results
               It's the thought that counts

James F. Hranicky wrote:

Out of curiosity, does the --enable-pthreads switch cause ruby threads
to use pthreads, or is the option there simply for linking against
pthreaded libraries?

i was wondering this too, and also: if it’s really causing ruby threads
to use pthreads, will it work under windows? (i assume not).

thank you,

emmanuel

Hi,

···

In message “–enable-pthreads option” on 04/01/09, “James F. Hranicky” jfh@cise.ufl.edu writes:

Out of curiosity, does the --enable-pthreads switch cause ruby threads
to use pthreads, or is the option there simply for linking against
pthreaded libraries?

It makes Ruby linked with libpthread, and to use pthread internally,
to deal with extensions likned with libpthread. But it does not make
Ruby thread-safe, nor make Ruby thread use pthread.

						matz.