• Nitin Garg's avatar
    Replace spinlock with SharedMutex in DigestBuilder · 580d5f19
    Nitin Garg authored
    Summary:
    Spinlocks in user space are generally a bad idea due to tendency to
    burn CPU in outlier events. Replace it with SharedMutex instead. The common
    case cost could go up a bit should be better overall.
    
    Reviewed By: yfeldblum
    
    Differential Revision: D31654923
    
    fbshipit-source-id: 77d249293458cd740904f777e00be1bd6834b62f
    580d5f19
DigestBuilder.h 2.76 KB