VirtualBox

Changeset 51194 in vbox


Ignore:
Timestamp:
May 6, 2014 10:59:56 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
93575
Message:

crOpenGL: 1.don't unload rt-dependant libs 2.wait for sync thread termination properly

Location:
trunk/src/VBox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/crOpenGL/Makefile.kmk

    r50030 r51194  
    236236VBoxOGL_DEFS.win   += VBOX_WITH_WDDM
    237237endif
    238 
     238if1of ($(KBUILD_TARGET), linux)
     239VBoxOGL_LDFLAGS += -Wl,-z,nodelete
     240endif
    239241ifdef VBOX_WITH_WDDM
    240242#
  • trunk/src/VBox/Additions/common/crOpenGL/load.c

    r50942 r51194  
    459459        ASMAtomicWriteBool(&stub.bShutdownSyncThread, true);
    460460        {
    461             /*RTThreadWait might return too early, which cause our code being unloaded while RT thread wrapper is still running*/
    462             int rc = pthread_join(RTThreadGetNative(stub.hSyncThread), NULL);
    463             if (!rc)
     461            int rc = RTThreadWait(stub.hSyncThread, RT_INDEFINITE_WAIT, NULL);
     462            if (RT_FAILURE(rc))
    464463            {
    465                 crDebug("pthread_join failed %i", rc);
     464                WARN(("RTThreadWait_join failed %i", rc));
    466465            }
    467466        }
  • trunk/src/VBox/GuestHost/OpenGL/Makefile.kmk

    r50364 r51194  
    117117VBoxOGLcrutil_CLEAN = \
    118118        $(VBOX_PATH_CROGL_GENFILES)/debug_opcodes.c
     119if1of ($(KBUILD_TARGET), linux)
     120VBoxOGLcrutil_LDFLAGS += -Wl,-z,nodelete
     121endif
    119122
    120123# vc7 hangs during compilation of this file when optimizations are enabled.
     
    157160if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_WDDM)
    158161 VBoxOGLhostcrutil_INSTTYPE.win = both
     162endif
     163if1of ($(KBUILD_TARGET), linux)
     164VBoxOGLhostcrutil_LDFLAGS = $(NO_SUCH_VARIABLE)
    159165endif
    160166VBoxOGLhostcrutil_LDFLAGS.darwin = $(VBoxOGLcrutil_LDFLAGS.darwin) \
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette