「pointer variable」を含む例文一覧(52)

<前へ 1 2
  • When releasing the lock and saving the thread state, the current thread state pointer must be retrieved before the lock is released (since another thread could immediately acquire the lock and store its own thread state in the global variable).Conversely, when acquiring the lock and restoring the thread state,the lock must be acquired before storing the thread state pointer.Why am I going on with so much detail about this?
    ロックを解放してスレッド状態を退避する際、ロックを解放する前に現在のスレッド状態ポインタを取得しておかなければなりません (他のスレッドがすぐさまロックを獲得して、自らのスレッド状態をグローバル変数に保存してしまうかもしれないからです)。 逆に、ロックを獲得してスレッド状態を復帰する際には、グローバル変数にスレッド状態ポインタを保存する前にロックを獲得しておかなければなりません。 - Python
  • under ``Built-inExceptions.''Note also that the SpamError variable retains a reference to the newly created exception class; this is intentional!
    の ``組み込み例外'' の節に述べられているException クラスを基底クラスに持つ例外クラスも作成できます (NULLの代わりに他のクラスを渡した場合は別です)。 SpamError 変数は、新たに生成された例外クラスへの参照を維持することにも注意してください; これは意図的な仕様です!外部のコードが例外オブジェクトをモジュールから除去できるため、モジュールから新たに作成した例外クラスが見えなくなり、SpamError がぶら下がりポインタ (dangling pointer)になってしまわないようにするために、クラスに対する参照を所有しておかねばなりません。 - Python
<前へ 1 2

例文データの著作権について