Skip to main content
added tags
Link
curiousguy
  • 8.3k
  • 2
  • 45
  • 60
deleted 53 characters in body; edited tags; edited title
Source Link
Remy Lebeau
  • 609.5k
  • 36
  • 516
  • 875

Thread Local Storage question , is thread_local key wordkeyword a must?

I'm trying to understand this concept. Is

Is the keyword thread_localthread_local or '__declspec( thread )'__declspec(thread) a must? In

In the sample of https://learn.microsoft.com/en-us/windows/win32/procthread/using-thread-local-storageUsing Thread Local Storage

  on MSDN, why is the variable dwTlsIndex isdwTlsIndex not decorated with 'thread_local'thread_local or '__declspec( thread )'__declspec(thread)?

Thread Local Storage question , is thread_local key word a must?

I'm trying to understand this concept. Is keyword thread_local or '__declspec( thread )' a must? In the sample of https://learn.microsoft.com/en-us/windows/win32/procthread/using-thread-local-storage

  why the variable dwTlsIndex is not decorated with 'thread_local' or '__declspec( thread )'

Thread Local Storage, is thread_local keyword a must?

I'm trying to understand this concept.

Is the keyword thread_local or __declspec(thread) a must?

In the Using Thread Local Storage on MSDN, why is the variable dwTlsIndex not decorated with thread_local or __declspec(thread)?

Source Link

Thread Local Storage question , is thread_local key word a must?

I'm trying to understand this concept. Is keyword thread_local or '__declspec( thread )' a must? In the sample of https://learn.microsoft.com/en-us/windows/win32/procthread/using-thread-local-storage

why the variable dwTlsIndex is not decorated with 'thread_local' or '__declspec( thread )'