VirtualBox

Changeset 55011 in vbox for trunk/src


Ignore:
Timestamp:
Mar 30, 2015 4:33:45 PM (10 years ago)
Author:
vboxsync
Message:

Host 3D: debug logging for crServer thread local storage keys life cycle.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/util/threads.c

    r53726 r55011  
    2929    (void) destructor;
    3030#else
    31     if (pthread_key_create(&tsd->key, destructor) != 0) {
    32         perror(INIT_TSD_ERROR);
    33         crError("crInitTSD failed!");
    34     }
     31    if (pthread_key_create(&tsd->key, destructor) != 0)
     32        crDebug("crServer: failed to allocate TLS key.");
     33    else
     34        crDebug("crServer: TLS key %d allocated.", tsd->key);
    3535#endif
    3636    tsd->initMagic = INIT_MAGIC;
     
    5353#else
    5454    if (pthread_key_delete(tsd->key) != 0)
    55     {
    56 //        perror(FREE_TSD_ERROR);
    57 //        crError("crFreeTSD failed!");
    58     }
     55        crDebug("crServer: failed to delete TLS key %d.", tsd->key);
     56    else
     57        crDebug("crServer: TLS key %d deleted.", tsd->key);
    5958#endif
    6059    tsd->initMagic = 0x0;
Note: See TracChangeset for help on using the changeset viewer.

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