Exemplo n.º 1
0
        public static CurlCode GlobalInit(CurlGlobal flags = CurlGlobal.Default)
        {
            lock (globalInitMutex) {
                // curl_global_init is reference counted, but I do manual reference counting in order to implement IsInitialized.

                ++globalInitRefCount;

                return(Environment.Is64BitProcess ?
                       LibCurlNative.GlobalInit64(flags) :
                       LibCurlNative.GlobalInit32(flags));
            }
        }
Exemplo n.º 2
0
 public static extern CurlCode GlobalInit32(CurlGlobal flags = CurlGlobal.Default);
Exemplo n.º 3
0
 internal static extern CurlCode GlobalInit(CurlGlobal flags);