Changeset afc2427


Ignore:
Timestamp:
Aug 16, 2018, 4:35:43 PM (6 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
Children:
6b9daf1
Parents:
d43ed2c
Message:

Use initial exec for thread local storage

Location:
libcfa/src/concurrency
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/invoke.h

    rd43ed2c rafc2427  
    5959                                volatile bool in_progress;
    6060                        } preemption_state;
    61                 } kernelTLS;
     61                } kernelTLS __attribute__ ((tls_model ( "initial-exec" )));
    6262        }
    6363
  • libcfa/src/concurrency/kernel.cfa

    rd43ed2c rafc2427  
    5757//-----------------------------------------------------------------------------
    5858// Global state
    59 thread_local struct KernelThreadData kernelTLS = {
     59thread_local struct KernelThreadData kernelTLS __attribute__ ((tls_model ( "initial-exec" ))) = {
    6060        NULL,
    6161        NULL,
  • libcfa/src/concurrency/kernel_private.hfa

    rd43ed2c rafc2427  
    7979};
    8080
    81 extern volatile thread_local __cfa_kernel_preemption_state_t preemption_state;
     81extern volatile thread_local __cfa_kernel_preemption_state_t preemption_state __attribute__ ((tls_model ( "initial-exec" )));
    8282
    8383//-----------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.