re-entrant functions ?

This is a discussion on re-entrant functions ? within the C++ Programming forums, part of the General Programming Boards category; can someone please explain what a re-entrant function is? you seem to stumble upon it sometimes and google wasn't too ...

  1. #1
    btq
    btq is offline
    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
    btq
    btq is offline
    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
    btq
    btq is offline
    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 04: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, 02: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21