タグ

2010年12月28日のブックマーク (2件)

  • TLS Callbacks - NyaRuRuが地球にいたころ

    id:NyaRuRu:20051220#p2 続編. Windows Server 2003以降(これにはWindows XP Professional x64 Editionも含まれる)のOSでは、FlsAllocを使用することで、ファイバ終了時にOSからコールバックを受けることができるようになりました。ファイバローカルストレージ(FLS)は、ファイバを全く使用しない場合でもTLSの代用として使用できます。そのためVisual C++ .NET 2003のCRTやVisual C++ 2005のCRTは、可能であればファイバローカルストレージを利用することで、確実に管理ブロックを開放するようになっています。このような重要なコールバックメカニズムが、従来のTLSには欠如していたと言えるでしょう。 ごめんなさい,Win32 Thread Local Storage (TLS) にコールバック

    TLS Callbacks - NyaRuRuが地球にいたころ
    kazutanaka
    kazutanaka 2010/12/28
    EXEに対するスレッドデタッチのコールバック関数を差し替えて、CRTが生成するスレッド単位データを解放することでリークを防ぐ。
  • Floor and ceiling functions - Wikipedia

    The integral part or integer part of a number (partie entière in the original) was first defined in 1798 by Adrien-Marie Legendre in his proof of the Legendre's formula. Carl Friedrich Gauss introduced the square bracket notation [x] in his third proof of quadratic reciprocity (1808).[3] This remained the standard[4] in mathematics until Kenneth E. Iverson introduced, in his 1962 book A Programmin

    Floor and ceiling functions - Wikipedia
    kazutanaka
    kazutanaka 2010/12/28
    切り上げ、切り下げを floor, ceil で表現する方法は、1960年代にKenneth Iversion が考案したもの。APLの人。