Thread: re-entrant functions ?

  1. #1
    julie lexx... btq's Avatar
    Join Date
    Jun 2002
    Posts
    161

    re-entrant functions ?

    can someone please explain what a re-entrant function is?
    you seem to stumble upon it sometimes and google wasn't too
    helpfull
    thanks
    /btq
    ...viewlexx - julie lexx

  2. #2
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Perhaps it's the same as recursive functions. Try searching for recursion.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  3. #3
    julie lexx... btq's Avatar
    Join Date
    Jun 2002
    Posts
    161
    Perhaps it's the same as recursive functions. Try searching for recursion.
    I doubt it,
    I think it has something to do with multiple threads or processes being able to call the same function simultaneously..
    but thanks anyways


    /btq
    ...viewlexx - julie lexx

  4. #4
    julie lexx... btq's Avatar
    Join Date
    Jun 2002
    Posts
    161
    reentrant code:
    Code written so that it can be shared by several applications or threads within a single process simultaneously. When code is reentrant, one thread can safely interrupt the execution of another thread, execute its own code, and then return control to the first thread in such a way that the first thread does not fail or behave in an unexpected way.
    right out of the MSDN-reference...
    ahh man!

    but still: what properties makes a function reentrant ?
    that it only uses stack variables and no static data ?

    /btq
    Last edited by btq; 11-18-2002 at 05:20 AM.
    ...viewlexx - julie lexx

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