Re: Best way to share data between threads

2005-02-22 Thread Jonathon McKitrick
On Tue, Feb 22, 2005 at 08:38:11AM +0200, Giorgos Keramidas wrote: : On 2005-02-22 05:50, Jonathon McKitrick [EMAIL PROTECTED] wrote: : : Hi all, : I'm porting some libraries from Win32 to BSD/Linux. In the original : code, I receive a Windows event with an attached COM object. : : Under

Re: Best way to share data between threads

2005-02-22 Thread Giorgos Keramidas
On 2005-02-22 12:19, Jonathon McKitrick [EMAIL PROTECTED] wrote: On Tue, Feb 22, 2005 at 08:38:11AM +0200, Giorgos Keramidas wrote: :On 2005-02-22 05:50, Jonathon McKitrick [EMAIL PROTECTED] wrote: : : Hi all, : I'm porting some libraries from Win32 to BSD/Linux. In the : original code, I receive

Re: Best way to share data between threads

2005-02-22 Thread Jonathon McKitrick
On Tue, Feb 22, 2005 at 02:42:44PM +0200, Giorgos Keramidas wrote: : 1) Explicit notification using a condition variable. : : The first can be accomplished by associating a pthread_cond_t with the I think this is the approach I will use. As a matter of fact, I added it today for a

Re: Best way to share data between threads

2005-02-22 Thread Giorgos Keramidas
On 2005-02-23 03:58, Jonathon McKitrick [EMAIL PROTECTED] wrote: On Tue, Feb 22, 2005 at 02:42:44PM +0200, Giorgos Keramidas wrote: : 1) Explicit notification using a condition variable. : : The first can be accomplished by associating a pthread_cond_t with the I think this is the approach

Best way to share data between threads

2005-02-21 Thread Jonathon McKitrick
Hi all, I'm porting some libraries from Win32 to BSD/Linux. In the original code, I receive a Windows event with an attached COM object. Under *nix, what is the best way to copy this? A message, followed by accessing shared memory between threads? jm --

Re: Best way to share data between threads

2005-02-21 Thread Giorgos Keramidas
On 2005-02-22 05:50, Jonathon McKitrick [EMAIL PROTECTED] wrote: Hi all, I'm porting some libraries from Win32 to BSD/Linux. In the original code, I receive a Windows event with an attached COM object. Under *nix, what is the best way to copy this? A message, followed by accessing shared