HBCOMM under MT environment ?

This is a discussion on HBCOMM under MT environment ? within the xharbour forums in Programming Languages category; Hi all, Can HBCOMM.lib work under MT environment to control two or more COM port ? Thanks...

Go Back   Application Development Forum > Programming Languages > xharbour

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-09-2008, 12:32 PM
fatfat
Guest
 
Default HBCOMM under MT environment ?

Hi all,

Can HBCOMM.lib work under MT environment to control two or more COM port ?

Thanks


Reply With Quote
  #2  
Old 08-10-2008, 09:22 AM
Luiz Lafael
Guest
 
Default Re: HBCOMM under MT environment ?

hi
>
> Can HBCOMM.lib work under MT environment to control two or more COM port ?


yes
but you need mutexes to use the port functions

Regards
Luiz



Reply With Quote
  #3  
Old 08-10-2008, 12:24 PM
fatfat
Guest
 
Default Re: HBCOMM under MT environment ?

how about using 2 threads for 2 different com port ?

"Luiz Lafael" <luiz@xharbour.com.br> 撰寫於郵件新聞:g7mrsg$gkt$2@aioe.org...
> hi
>>
>> Can HBCOMM.lib work under MT environment to control two or more COM port
>> ?

>
> yes
> but you need mutexes to use the port functions
>
> Regards
> Luiz
>
>
>



Reply With Quote
  #4  
Old 08-11-2008, 10:07 AM
luiz Rafael Culik Guimaraes
Guest
 
Default Re: HBCOMM under MT environment ?


> how about using 2 threads for 2 different com port ?


no problem
but you need to protext with mutexes the port acess on each thread

Regards
Luiz


Reply With Quote
  #5  
Old 08-11-2008, 11:21 AM
fatfat
Guest
 
Default Re: HBCOMM under MT environment ?

i have no idea on mutexes function with xharbour, can i just care not to use
same com port from each thread ?

Thanks

"luiz Rafael Culik Guimaraes" <luiz@xharbour.com.br> 撰寫於郵件新聞:g7ph2h$irs$1@aioe.org...
>
>> how about using 2 threads for 2 different com port ?

>
> no problem
> but you need to protext with mutexes the port acess on each thread
>
> Regards
> Luiz
>
>



Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 03:37 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.