>>81
こういうほぼ共通なコードで #if を使わずにファイルを分けたら逆に管理しづらくならない?
https://github.com/Microsoft/referencesource/blob/master/System/sys/system/threading/semaphore.cs