Re: can pthread and pth coexist

2003-10-27 Thread Kevin Cosgrove
I reported my experience using Pth's pthreads API with mondo on their mailing list. This is what I got back: On 25 October 2003 at 12:17, "Hugo Rabson" <[EMAIL PROTECTED]> wrote: > FYI, Mondo 1.7x outsources all the multithreaded buffer stuff to 'buffer', > so now it works with OnStream drives

Re: can pthread and pth coexist

2003-10-24 Thread Kevin Cosgrove
On 24 October 2003 at 21:23, Steve Alstrin <[EMAIL PROTECTED]> wrote: > Hum, this doesn't sound fun, however we ran into a condition with recursive > use of mutexs that sounds familiar you might replace any mutex code in mondo > with the following extra "pthread_mutexattr_settype" call. > >

RE: can pthread and pth coexist

2003-10-24 Thread Steve Alstrin
d_mutexattr_settype(&_mutex_attrs, PTHREAD_MUTEX_RECURSIVE_NP); pthread_mutex_init(&_mutex, &_mutex_attrs); You will have to go back to using native threads though. -Original Message- From: Kevin Cosgrove [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 12:06 PM To: [EMAIL PROT

Re: can pthread and pth coexist

2003-10-24 Thread Kevin Cosgrove
On 24 October 2003 at 16:32, Steve Alstrin <[EMAIL PROTECTED]> wrote: > Ok i'm really confused on what it is your trying to do. Are you > trying to build a package with pth libpthread instead of the > system libpthread? Yes, exactly. > If so you should install pth libpthread somewhere other tha

RE: can pthread and pth coexist

2003-10-24 Thread Steve Alstrin
native threads? -Original Message- From: Kevin Cosgrove [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 11:14 AM To: [EMAIL PROTECTED] Subject: Re: can pthread and pth coexist On 23 October 2003 at 14:42, Steve Alstrin <[EMAIL PROTECTED]> wrote: > Yes you did miss something,

Re: can pthread and pth coexist

2003-10-24 Thread Kevin Cosgrove
On 23 October 2003 at 14:42, Steve Alstrin <[EMAIL PROTECTED]> wrote: > Yes you did miss something, but it's not your fault, heehee. Include the > pthread.h file before any other system files and that should fix the > problem. OK, I just did that and it didn't work. But, I fixed it after that.

RE: can pthread and pth coexist

2003-10-23 Thread Steve Alstrin
bject: Re: can pthread and pth coexist On 21 October 2003 at 14:19, Steve Alstrin <[EMAIL PROTECTED]> wrote: > If you are doing this on Linux you can use the HARD system call method, look > at the config options, which when you link will use the pthread emulation >

Re: can pthread and pth coexist

2003-10-22 Thread Kevin Cosgrove
On 21 October 2003 at 14:19, Steve Alstrin <[EMAIL PROTECTED]> wrote: > If you are doing this on Linux you can use the HARD system call method, look > at the config options, which when you link will use the pthread emulation > api in pth threads. > > -Original Message- > > From: Thor Tal

RE: can pthread and pth coexist

2003-10-21 Thread Steve Alstrin
If you are doing this on Linux you can use the HARD system call method, look at the config options, which when you link will use the pthread emulation api in pth threads. -Original Message- From: Thor Tall [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 5:02 AM To: [EMAIL PROTECT