Changeset 9cc0472


Ignore:
Timestamp:
Jul 19, 2017, 12:28:59 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
3175147
Parents:
b826e6b
Message:

Fix error with volatile on pointer

Location:
src/libcfa/concurrency
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/concurrency/coroutine

    rb826e6b r9cc0472  
    6363
    6464// Get current coroutine
    65 extern volatile thread_local coroutine_desc * this_coroutine;
     65extern thread_local coroutine_desc * volatile this_coroutine;
    6666
    6767// Private wrappers for context switch and stack creation
  • src/libcfa/concurrency/coroutine.c

    rb826e6b r9cc0472  
    2626}
    2727
    28 #include "kernel"
    29 #include "libhdr.h"
     28#include "kernel_private.h"
    3029
    3130#define __CFA_INVOKE_PRIVATE__
    3231#include "invoke.h"
    3332
    34 extern volatile thread_local processor * this_processor;
    3533
    3634//-----------------------------------------------------------------------------
  • src/libcfa/concurrency/kernel.c

    rb826e6b r9cc0472  
    5555// Global state
    5656
    57 volatile thread_local coroutine_desc * this_coroutine;
    58 volatile thread_local thread_desc * this_thread;
    59 volatile thread_local processor * this_processor;
     57thread_local coroutine_desc * volatile this_coroutine;
     58thread_local thread_desc *    volatile this_thread;
     59thread_local processor *      volatile this_processor;
    6060
    6161volatile thread_local bool preemption_in_progress = 0;
  • src/libcfa/concurrency/kernel_private.h

    rb826e6b r9cc0472  
    7373extern event_kernel_t * event_kernel;
    7474
    75 extern volatile thread_local processor * this_processor;
    76 extern volatile thread_local coroutine_desc * this_coroutine;
    77 extern volatile thread_local thread_desc * this_thread;
     75extern thread_local coroutine_desc * volatile this_coroutine;
     76extern thread_local thread_desc *    volatile this_thread;
     77extern thread_local processor *      volatile this_processor;
     78
    7879extern volatile thread_local bool preemption_in_progress;
    7980extern volatile thread_local unsigned short disable_preempt_count;
  • src/libcfa/concurrency/thread

    rb826e6b r9cc0472  
    5454}
    5555
    56 extern volatile thread_local thread_desc * this_thread;
     56extern thread_local thread_desc * volatile this_thread;
    5757
    5858forall( dtype T | is_thread(T) )
  • src/libcfa/concurrency/thread.c

    rb826e6b r9cc0472  
    8787
    8888void yield( void ) {
    89         BlockInternal( (thread_desc *)this_thread );
     89        BlockInternal( (thread_desc*)this_thread );
    9090}
    9191
Note: See TracChangeset for help on using the changeset viewer.