--enable-pthreads option

  • Thread starter James F. Hranicky
  • Start date
J

James F. Hranicky

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?
 
E

Emmanuel Touzery

James said:
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
 
Y

Yukihiro Matsumoto

Hi,

In message "--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?

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top