aws-c-common icon indicating copy to clipboard operation
aws-c-common copied to clipboard

Consolidate CRT's thread-local storage

Open nchong-at-aws opened this issue 6 years ago • 0 comments

Consider adding a thread-local storage system in common that everything else hangs off of so that the CRT's usage is always a single slot.

Current use of thread-local storage:

  • int tl_last_error in source/error.c
  • void *tl_thread_handler_context in source/error.c
  • struct tl_logging_thread_id in source/log_formatter.c (#563)

nchong-at-aws avatar Jan 02 '20 14:01 nchong-at-aws