Thread: Blocking functions

  1. #1
    Registered User KonArtis's Avatar
    Join Date
    Mar 2003
    Posts
    34

    Question Blocking functions

    Is there something you can do to unblock a blockked function?

    For example:
    Thread1
    allocate dynamic memory
    blocking function();
    free dynamic memory
    End

    Thread2
    unblock Thread1
    End

    Is it possible for Thread2 to unblock Thread1 and still have the dynamic memory freed?

    Thanks,
    Joe

  2. #2
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    not from thread1 -- how is it supposed to unblock thread2 when thread1 is blocked -- it can't get any cpu time to unblock thread2. catch 22 situation

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Void Functions Help
    By bethanne41 in forum C++ Programming
    Replies: 1
    Last Post: 05-09-2005, 05:30 PM
  2. Functions and Classes - What did I do wrong?
    By redmage in forum C++ Programming
    Replies: 5
    Last Post: 04-11-2005, 11:50 AM
  3. calling functions within functions
    By edd1986 in forum C Programming
    Replies: 3
    Last Post: 03-29-2005, 03:35 AM
  4. Factory Functions HOWTO
    By GuardianDevil in forum Windows Programming
    Replies: 1
    Last Post: 05-01-2004, 01:41 PM
  5. Shell functions on Win XP
    By geek@02 in forum Windows Programming
    Replies: 6
    Last Post: 04-19-2004, 05:39 AM