Threads API function

int pure_name_thread (const char * name)

Associates the specified name with the id of the current thread.

Purify uses this name in all messages that mention this thread. For example:

UMR: Uninitialized memory read
This is occurring while in thread 6 "Consumer":
 
consumer_loop [test.c:213]
  do_consumer_loop [test.c:236]
  writer_to_stdio [test.c:244]
  _thread_start [libthread.so.1]
Reading 4 bytes from 0xeee03d5c on the stack of
          thread 5 "Producer".

 

Notes: