CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2006
    Posts
    144

    Can I call functions in a thread

    Hello ALL,


    I wonder if it is safe to call a function in a thread, which recursively calls other functions like the following manner.
    Code:
    void thread_func(void*)
    {
          ......        
          subfunc_1();
          ......    
    
    }
    
    subfunc_1()
    {
         subfunc_11();
    }
    
    subfunc_11()
    {
         subfunc_111();
    }

  2. #2
    Join Date
    Jul 2008
    Location
    Be'er Sheva, Israel
    Posts
    69

    Re: Can I call functions in a thread

    It's safe, you're just altering the instruction flow of the thread.
    --How often do you look at a man's shoes?

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