[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

embedding ruby + pthread

Joe Van Dyk

1/9/2006 9:41:00 PM

I have a C executable that I'm embedding a Ruby GUI (using ruby-gnome2) in.

The GUI needs to run in it's own thread.

Are there any pitfalls I should be aware of? I'm currently using pthread.

(I'm asking because my application segfaults on start half the time
right when the Ruby GUI launches and I'm trying to track down causes.)

Do I need to build Ruby with pthread? Doing a ldd on the Ruby
interpreter reported:

libruby.so.1.8 => /usr/lib/libruby.so.1.8 (0x003c3000)
libdl.so.2 => /lib/libdl.so.2 (0x00111000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x00e35000)
libm.so.6 => /lib/tls/libm.so.6 (0x0080c000)
libc.so.6 => /lib/tls/libc.so.6 (0x00114000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x005ea000)

(and I don't see pthread in there)


4 Answers

ts

1/10/2006 12:04:00 PM

0

>>>>> "J" == Joe Van Dyk <joevandyk@gmail.com> writes:

J> Do I need to build Ruby with pthread?

it's best if you don't want to have surprise ...

see [ruby-core:4440]


Guy Decoux


Slo

6/9/2009 11:32:00 PM

0

On Jun 9, 3:34 pm, Buzz <b...@none.com> wrote:
> Clay wrote:
>
> > Said Limbaugh: "It is offensive to the sensibilities of millions of
> > people to hear a member of the state-run media refer to a half-black,
> > half-white human being with no experience running anything of
> > substance referred to as a god. He may be president of the United
> > States, but he's not a god."
>
> > --------------
>
> > I don't know why Rush had to say "half-black, half-white"... it wasn't
> > part of the discussion.  The statement is definitely "racial"... but
> > is it "racist"?
>
> > Hmmm...
>
> > -C-
>
> Lets see, Hussein's mother was white, his father was black, so guess he
> really is half white and half black. Guess some people can't handle the
> truth.

"Limbaugh is a fat stupid white man."

Is Limbaugh white? Yes. Is what I just wrote above in quotes
racist? Yes. If you don't know why, then you're stupid too.

Dano

6/10/2009 5:03:00 AM

0

Slo wrote:
> On Jun 9, 3:34 pm, Buzz <b...@none.com> wrote:
>> Clay wrote:
>>
>>> Said Limbaugh: "It is offensive to the sensibilities of millions of
>>> people to hear a member of the state-run media refer to a
>>> half-black, half-white human being with no experience running
>>> anything of substance referred to as a god. He may be president of
>>> the United States, but he's not a god."
>>
>>> --------------
>>
>>> I don't know why Rush had to say "half-black, half-white"... it
>>> wasn't part of the discussion. The statement is definitely
>>> "racial"... but is it "racist"?
>>
>>> Hmmm...
>>
>>> -C-
>>
>> Lets see, Hussein's mother was white, his father was black, so guess
>> he really is half white and half black. Guess some people can't
>> handle the truth.
>
> "Limbaugh is a fat stupid white man."
>
> Is Limbaugh white? Yes. Is what I just wrote above in quotes
> racist? Yes. If you don't know why, then you're stupid too.

You left out loud and ugly. And THAT ain't racist...


Buzz

6/11/2009 9:25:00 PM

0

Slo wrote:
> On Jun 9, 3:34 pm, Buzz <b...@none.com> wrote:
>> Clay wrote:
>>
>>> Said Limbaugh: "It is offensive to the sensibilities of millions of
>>> people to hear a member of the state-run media refer to a half-black,
>>> half-white human being with no experience running anything of
>>> substance referred to as a god. He may be president of the United
>>> States, but he's not a god."
>>> --------------
>>> I don't know why Rush had to say "half-black, half-white"... it wasn't
>>> part of the discussion. The statement is definitely "racial"... but
>>> is it "racist"?
>>> Hmmm...
>>> -C-
>> Lets see, Hussein's mother was white, his father was black, so guess he
>> really is half white and half black. Guess some people can't handle the
>> truth.
>
> "Limbaugh is a fat stupid white man."
>
> Is Limbaugh white? Yes. Is what I just wrote above in quotes
> racist? Yes. If you don't know why, then you're stupid too.

I see why you call yourself slo(w).

Simple-minded dummycrat liberals...morons electing morons.