• Michael Bejda's avatar
    Thread-safe RequestContext putIfAbsent operation · 1721cad0
    Michael Bejda authored
    Summary:
    Adds a thread-safe putIfAbsent operation to the RequestContext. The current setContextData() is not sufficent to do it safely.
    Just like setContextData, this method is unfair, as a high volume of reads will block the spinlock.
    
    Reviewed By: fugalh
    
    Differential Revision: D2850752
    
    fb-gh-sync-id: 2ff22ea9e9bd8f27f6ae7a57214a6dbc4fdcd4c5
    1721cad0
Request.h 4.57 KB