Changeset 1bcbf02 for benchmark


Ignore:
Timestamp:
Aug 31, 2022, 11:55:47 AM (2 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, master, pthread-emulation
Children:
594e1db
Parents:
e5c04b9
Message:

Changed declarations using _Thread_local to use thread.
I'm fairly sure they do exactly the same, but
thread is:

  • more consistent with uC++.
  • Shorter.
  • Better documented.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/basic/tls_fetch_add.c

    re5c04b9 r1bcbf02  
    77// thread_local Boolean. This means the entire protocol is just to "mov" instructions making it extremely cheap.
    88
    9 _Thread_local volatile bool value;
     9__thread volatile bool value;
    1010
    1111void __attribute__((noinline)) do_call() {
Note: See TracChangeset for help on using the changeset viewer.