executing a member function in a separate thread

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



hello everybody !!

my new problem is that i have a class that contain a some functions and
some variables

i want to execute one of these functions in a separate thread using
AfxBeginThread(...);
and FYI this function uses some member variables of the class to do
it's work

any idea ???
thnx 4 ur time and concern

a.hemdan

.



Relevant Pages

  • executing a member function in a separate thread
    ... i want to execute one of these functions in a separate thread using ... and FYI this function uses some member variables of the class to do ... thnx 4 ur time and concern ...
    (microsoft.public.vc.mfc)
  • passing parameters to run() method
    ... I am working with some legacy code --- a Runnable object which passes ... info to its new threads by setting member variables before starting ... variable can change before a thread has a chance to execute. ...
    (comp.lang.java.programmer)
  • RE: Worker Thread
    ... I could do something along these lines with delegates for the functions i ... wish to execute and some member variables, i'd prob need an extra level of ... >> receives the messages is in the traditional Windows Form messaging loop. ... then you can execute a method on the recipient's thread by using the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: TIdHTTP is on a separate thread, but the application freezes
    ... CheckUpdatesThread:= TCheckUpdatesThread.Create; ... You've never seen statements like that in any thread demo. ... It doesn't *automatically* execute in a separate thread. ...
    (alt.comp.lang.borland-delphi)
  • Re: passing parameters to run() method
    ... >>info to its new threads by setting member variables before starting ... >>variable can change before a thread has a chance to execute. ... and stuff the Runnable parameters into its instance fields. ...
    (comp.lang.java.programmer)