コード例 #1
0
ファイル: CurlShare.cs プロジェクト: zfyno1/Jackett
        private void installDelegates()
        {
            _hThis   = GCHandle.Alloc(this);
            _ptrThis = (IntPtr)_hThis;
#if USE_LIBCURLSHIM
            _pDelLock   = LockDelegate;
            _pDelUnlock = UnlockDelegate;
            NativeMethods.curl_shim_install_share_delegates(_pShare, _ptrThis, _pDelLock, _pDelUnlock);
#endif
        }
コード例 #2
0
ファイル: CurlShare.cs プロジェクト: ChuckFork/CurlSharp
        private void installDelegates()
        {
            _hThis = GCHandle.Alloc(this);
            _ptrThis = (IntPtr)_hThis;
#if USE_LIBCURLSHIM
            _pDelLock = LockDelegate;
            _pDelUnlock = UnlockDelegate;
            NativeMethods.curl_shim_install_share_delegates(_pShare, _ptrThis, _pDelLock, _pDelUnlock);
#endif
        }