Re: pass pointer to a thread function ?
From: Victor Bazarov (v.Abazarov_at_comAcast.net)
Date: 03/14/05
- Next message: Victor Bazarov: "Re: threads question"
- Previous message: daniel.w.gelder_at_gmail.com: "Re: Please help me write a functor template"
- In reply to: mandatory: "pass pointer to a thread function ?"
- Next in thread: mandatory: "Re: pass pointer to a thread function ?"
- Reply: mandatory: "Re: pass pointer to a thread function ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 13 Mar 2005 19:25:04 -0500
"mandatory" <okllsam@nptklooohs.ru> wrote...
> i would like to pass a pointer to a thread function to a class.
>
> The function in my code that i would like to get the address of, and pass
> it to a class function is:
>
> DWORD ServiceExecution(LPDWORD param)
>
> And i would like to somehow send the address to a class function, similar
> to this:
>
> MyClass.ServiceExe (ServiceExecution):
>
> Can this be done ?
Not if the class function is a non-static member. See the FAQ, section 33.
> [..]
V
- Next message: Victor Bazarov: "Re: threads question"
- Previous message: daniel.w.gelder_at_gmail.com: "Re: Please help me write a functor template"
- In reply to: mandatory: "pass pointer to a thread function ?"
- Next in thread: mandatory: "Re: pass pointer to a thread function ?"
- Reply: mandatory: "Re: pass pointer to a thread function ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|