Amount of Memory a Thread is Currently Using

Syntax
num_bytes = thread_alloc::inuse(thread)

Purpose
Memory being managed by thread_alloc has two states, currently in use by the specified thread, and quickly available for future use by the specified thread. This function informs the program how much memory is in use.

This argument has prototype       size_t thread  Either thread_num must be the same as thread , or the current execution mode must be sequential (not parallel ).
The return value has prototype       size_t num_bytes  It is the number of bytes currently in use by the specified thread.