• Kyle Brenneman's avatar
    tests: Add tests for the multithreaded path in libGLdispatch · bed48a10
    Kyle Brenneman authored
    This is important for testing the TSD stubs, which have a separate fast path
    for single-threaded programs.
    
    The TSD stubs start with a simple global variable to hold the dispatch table
    so that a single-threaded program doesn't have to deal with the overhead of
    calling pthread_getspecific. When a second thread comes along, it sets that
    variable to NULL, which makes the stubs call pthread_getspecific instead.
    
    This change adds a flag to the testgldispatch test program that tells it to
    call into libGLdispatch from two threads to force it into its multi-threaded
    mode.
    
    It also adds three new test scripts, which are the same testgldispatch tests
    but for the multithreaded path.
    bed48a10
Name
Last commit
Last update
..
dummy Loading commit data...
json Loading commit data...
.gitignore Loading commit data...
Makefile.am Loading commit data...
egl_test_utils.c Loading commit data...
egl_test_utils.h Loading commit data...
eglenv.sh Loading commit data...
glxenv.sh Loading commit data...
test_utils.c Loading commit data...
test_utils.h Loading commit data...
testegldebug.c Loading commit data...
testegldebug.sh Loading commit data...
testegldevice.c Loading commit data...
testegldevice.sh Loading commit data...
testegldisplay.c Loading commit data...
testegldisplay.sh Loading commit data...
testeglerror.c Loading commit data...
testeglerror.sh Loading commit data...
testeglgetprocaddress.c Loading commit data...
testeglgetprocaddress.sh Loading commit data...
testeglmakecurrent.c Loading commit data...
testeglmakecurrent.sh Loading commit data...
testgldispatch.c Loading commit data...
testgldispatch_generated.sh Loading commit data...
testgldispatch_generated_thr.sh Loading commit data...
testgldispatch_patched.sh Loading commit data...
testgldispatch_patched_thr.sh Loading commit data...
testgldispatch_static.sh Loading commit data...
testgldispatch_static_thr.sh Loading commit data...
testglxcreatecontext.c Loading commit data...
testglxcreatecontext.sh Loading commit data...
testglxgetclientstr.c Loading commit data...
testglxgetclientstr.sh Loading commit data...
testglxgetprocaddress.c Loading commit data...
testglxgetprocaddress.sh Loading commit data...
testglxgetprocaddress_genentry.sh Loading commit data...
testglxmakecurrent.c Loading commit data...
testglxmcbasic.sh Loading commit data...
testglxmclate.sh Loading commit data...
testglxmcloop.sh Loading commit data...
testglxmcoldlink.sh Loading commit data...
testglxmcthreads.sh Loading commit data...
testglxqueryversion.c Loading commit data...
testglxqueryversion.sh Loading commit data...
testpatchentrypoints.c Loading commit data...
testpatchentrypoints.sh Loading commit data...