CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2008
    Posts
    69

    Post Need Clarification about CWinThread

    To handle the multiple Thread in optimized way is any other handler is available execept CWinThread.

  2. #2
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: Need Clarification about CWinThread

    You really need to clarify this one-liner. What are you talking about ?

  3. #3
    Join Date
    Sep 2008
    Posts
    69

    Re: Need Clarification about CWinThread

    sorry sir i have done mistake.i accept it .

    Actually now i am using CWinThread, I need to transmit the 8 byte of data atleast 100 times per second to comport. and also i need to receive the 32byte of data from comport atleast 20 times per second. now i can't handle this amout of data through CWinThread.

    Actually now i am using 19200 baudrate for transmitting and receiving data to & from serialport.

    Is there any other possible thread handler is available to handle this amout of data in thread.

  4. #4
    Join Date
    Jun 2002
    Location
    Stockholm, Sweden
    Posts
    1,641

    Re: Need Clarification about CWinThread

    Quote Originally Posted by sathyboopathiraja View Post
    now i can't handle this amout of data through CWinThread.
    I find that hard to believe. CWinTread is just a wrapper class that starts the thread using the native windows api. So it is as good as any other thread you can use. The baud rates you are talking about seem very low. There should be no problem whatsoever to handle those few thousand bytes in a thread.
    Nobody cares how it works as long as it works

  5. #5
    Join Date
    Feb 2000
    Location
    San Diego, CA
    Posts
    10,354

    Re: Need Clarification about CWinThread

    Please post your code.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured