Using a trace function with multiple threads

Ask a Question related to Ruby, Design and Development.

  1. #1

    Default Using a trace function with multiple threads

    Hello all,

    I'd like to know if the set_trace_func function works on a "per
    thread" basis or if it works globally.

    I have a multithreaded application that is required to do some
    checking inside a trace function. This checking requires having access
    to the current thread's context to determine its class type, name
    based on a variable, ...

    Is there a way to get a hold (an address, an ID, ...) to the active
    thread's context within a global trace function?

    Thanks a lot,

    Francis
    Francis Joanis Guest

  2. Similar Questions and Discussions

    1. Function Trace
      Well i have used the function trace but how can i see the output or where is it.? Thanks in advance
    2. Blocking on multiple threads with timeout
      I have a few threads that might need as long as a minute or more to complete and terminate. If they exceed an arbitrary time, they can be...
    3. AI 10 updating Multiple links function GONE! or not?
      Hi all! Could be being kinda stoopid here but in previous incarnations of AI (pre AI 10 under OS 9 MAC) if you renamed your folders or moved a...
    4. multiple threads read() problems
      Hello, I have a multi-threaded echo server designed like so: - there's a main threads and some number of worker threads (threadpool) - main...
    5. Displaying the function stack trace
      Guenther Sohler wrote: Use abort() instead of exit(). This will leave a core file that you can use for post-mortem debugging.
  3. #2

    Default Re: Using a trace function with multiple threads

    Read the source code of the debugger. You find your answer there.

    its the "debugger.rb" file :-)



    Lothar Scholz Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139