Ignore:
Timestamp:
Sep 30, 2020, 5:44:53 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
038110a
Parents:
29185fc
Message:

More work towards dynamically picking a framework, however initial-exec tls is not working correctly

Location:
doc/theses/thierry_delisle_PhD/code/readQ_example/thrdlib
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/thierry_delisle_PhD/code/readQ_example/thrdlib/Makefile

    r29185fc r4e39f51  
    1 all: fibre.so pthread.so
     1all: fibre.so pthread.so cforall.so
    22
    33clean:
    44        rm -rf fibre.so pthread.so
    55
     6CXXFLAGS=-Wall -Wextra -O3 -g -fpic -std=c++17 -pthread -ftls-model=initial-exec
     7
    68pthread.so: pthread.cpp Makefile
    7         $(CXX) -Wall -Wextra -O3 -g -shared -o ${@} -pthread -fpic ${<}
     9        $(CXX) $(CXXFLAGS) -shared -o ${@} ${<}
    810
    911fibre.so: fibre.cpp Makefile
    10         $(CXX) -Wall -Wextra -O3 -g -shared -o ${@} -pthread -fpic ${<} -lfibre
     12        $(CXX) $(CXXFLAGS) -shared -o ${@} ${<} -lfibre
     13
     14CFAINC=${HOME}/local/include/cfa-dev
     15CFALIB=${HOME}/local/lib/cfa-dev/x64-debug
     16CFAFLAGS=-z execstack -I${CFAINC} -I${CFAINC}/concurrency -L${CFALIB} -Wl,-rpath,${CFALIB}
     17
     18cforall.so: cforall.cpp Makefile
     19        $(CXX) $(CXXFLAGS) $(CFAFLAGS) -shared -o ${@} ${<} -lcfathread -lcfa -ldl -lm
  • doc/theses/thierry_delisle_PhD/code/readQ_example/thrdlib/thread.cpp

    r29185fc r4e39f51  
    2828
    2929        const char * error = dlerror();
    30         if ( error ) {
     30        if ( required && error ) {
    3131                std::cerr << "Fetching symbol '" << symbol << "' failed with error '" << error << "'\n";
    3232                std::abort();
Note: See TracChangeset for help on using the changeset viewer.