zoukankan      html  css  js  c++  java
  • eentrancy and ThreadSafety

    Reentrancy and Thread-Safety

    Throughout the Qt documentation, the terms reentrant and thread-safe are used to specify how a function can be used in multithreaded applications:

    • A reentrant function can be called simultaneously by multiple threads provided that each invocation of the function references unique data.
    • A thread-safe function can be called simultaneously by multiple threads when each invocation references shared data. All access to the shared data is serialized.

    By extension, a class is said to be reentrant if each and every one of its functions can be called simultaneously by multiple threads on different instances of the class. Similarly, the class is said to be thread-safe if the functions can be called by different threads on the same instance.

    Classes in the documentation will be documented as thread-safe only if they are intended to be used by multiple threads.


  • 相关阅读:
    hdu2844 Coins -----多重背包+二进制优化
    bzoj1452 [JSOI2009]Count ——二维树状数组
    cf685 div2 abcde
    cf675 div2 abcd
    cf669 div2 abcd
    cf668 div2 abcd
    UVA-10795
    cf665 div2 abcd
    Colored Cubes UVALive
    Image Is Everything UVALive
  • 原文地址:https://www.cnblogs.com/baizx/p/1703964.html
Copyright © 2011-2022 走看看