-- Autogenerated by MSIL2Ada v. 2
-- By: Martin C. Carlisle
--     Department of Computer Science
--     US Air Force Academy
--     carlislem@acm.org
pragma Extensions_Allowed(On);
with MSSyst.Object;
with MSIL_Types;
use MSIL_Types;
with type MSSyst.Object.Ref is access;
with type MSSyst.Type_k.Ref is access;
with type MSSyst.Threading.WaitCallback.Ref is access;
with type MSSyst.Threading.RegisteredWaitHandle.Ref is access;
with type MSSyst.Threading.WaitHandle.Ref is access;
with type MSSyst.Threading.WaitOrTimerCallback.Ref is access;
with type MSSyst.TimeSpan.Valuetype is tagged;
with type MSSyst.String.Ref is access;
with MSSyst.Object;
package MSSyst.Threading.ThreadPool is
   type Typ;
   type Ref is access all Typ'Class;
   type Ref_addrof is access all Ref;
   type Ref_Arr is array(Natural range <>) of Ref;
   type Ref_Array is access all Ref_Arr;
   type Ref_Array_addrof is access all Ref_Array;
   type Typ is new MSSyst.Object.Typ with record
      null;
   end record;
   function BindHandle(
      osHandle : MSIL_Types.native_int) return Standard.Boolean;
   procedure GetAvailableThreads(
      workerThreads : MSIL_Types.Int32_addrof;
      completionPortThreads : MSIL_Types.Int32_addrof);
   procedure GetMaxThreads(
      workerThreads : MSIL_Types.Int32_addrof;
      completionPortThreads : MSIL_Types.Int32_addrof);
   procedure GetMinThreads(
      workerThreads : MSIL_Types.Int32_addrof;
      completionPortThreads : MSIL_Types.Int32_addrof);
   function QueueUserWorkItem(
      callBack : MSSyst.Threading.WaitCallback.Ref;
      state : MSSyst.Object.Ref) return Standard.Boolean;
   function QueueUserWorkItem(
      callBack : MSSyst.Threading.WaitCallback.Ref) return Standard.Boolean;
   function RegisterWaitForSingleObject(
      waitObject : MSSyst.Threading.WaitHandle.Ref;
      callBack : MSSyst.Threading.WaitOrTimerCallback.Ref;
      state : MSSyst.Object.Ref;
      millisecondsTimeOutInterval : Long_Long_Integer;
      executeOnlyOnce : Standard.Boolean) return MSSyst.Threading.RegisteredWaitHandle.Ref;
   function RegisterWaitForSingleObject(
      waitObject : MSSyst.Threading.WaitHandle.Ref;
      callBack : MSSyst.Threading.WaitOrTimerCallback.Ref;
      state : MSSyst.Object.Ref;
      timeout : MSSyst.TimeSpan.Valuetype;
      executeOnlyOnce : Standard.Boolean) return MSSyst.Threading.RegisteredWaitHandle.Ref;
   function RegisterWaitForSingleObject(
      waitObject : MSSyst.Threading.WaitHandle.Ref;
      callBack : MSSyst.Threading.WaitOrTimerCallback.Ref;
      state : MSSyst.Object.Ref;
      millisecondsTimeOutInterval : Integer;
      executeOnlyOnce : Standard.Boolean) return MSSyst.Threading.RegisteredWaitHandle.Ref;
   function RegisterWaitForSingleObject(
      waitObject : MSSyst.Threading.WaitHandle.Ref;
      callBack : MSSyst.Threading.WaitOrTimerCallback.Ref;
      state : MSSyst.Object.Ref;
      millisecondsTimeOutInterval : MSIL_Types.Unsigned_Integer;
      executeOnlyOnce : Standard.Boolean) return MSSyst.Threading.RegisteredWaitHandle.Ref;
   function SetMinThreads(
      workerThreads : Integer;
      completionPortThreads : Integer) return Standard.Boolean;
   function UnsafeQueueUserWorkItem(
      callBack : MSSyst.Threading.WaitCallback.Ref;
      state : MSSyst.Object.Ref) return Standard.Boolean;
   function UnsafeRegisterWaitForSingleObject(
      waitObject : MSSyst.Threading.WaitHandle.Ref;
      callBack : MSSyst.Threading.WaitOrTimerCallback.Ref;
      state : MSSyst.Object.Ref;
      millisecondsTimeOutInterval : Long_Long_Integer;
      executeOnlyOnce : Standard.Boolean) return MSSyst.Threading.RegisteredWaitHandle.Ref;
   function UnsafeRegisterWaitForSingleObject(
      waitObject : MSSyst.Threading.WaitHandle.Ref;
      callBack : MSSyst.Threading.WaitOrTimerCallback.Ref;
      state : MSSyst.Object.Ref;
      millisecondsTimeOutInterval : Integer;
      executeOnlyOnce : Standard.Boolean) return MSSyst.Threading.RegisteredWaitHandle.Ref;
   function UnsafeRegisterWaitForSingleObject(
      waitObject : MSSyst.Threading.WaitHandle.Ref;
      callBack : MSSyst.Threading.WaitOrTimerCallback.Ref;
      state : MSSyst.Object.Ref;
      millisecondsTimeOutInterval : MSIL_Types.Unsigned_Integer;
      executeOnlyOnce : Standard.Boolean) return MSSyst.Threading.RegisteredWaitHandle.Ref;
   function UnsafeRegisterWaitForSingleObject(
      waitObject : MSSyst.Threading.WaitHandle.Ref;
      callBack : MSSyst.Threading.WaitOrTimerCallback.Ref;
      state : MSSyst.Object.Ref;
      timeout : MSSyst.TimeSpan.Valuetype;
      executeOnlyOnce : Standard.Boolean) return MSSyst.Threading.RegisteredWaitHandle.Ref;
private
   pragma Convention(MSIL,Typ);
   pragma Import(MSIL,BindHandle,"BindHandle");
   pragma Import(MSIL,GetAvailableThreads,"GetAvailableThreads");
   pragma Import(MSIL,GetMaxThreads,"GetMaxThreads");
   pragma Import(MSIL,GetMinThreads,"GetMinThreads");
   pragma Import(MSIL,QueueUserWorkItem,"QueueUserWorkItem");
   pragma Import(MSIL,RegisterWaitForSingleObject,"RegisterWaitForSingleObject");
   pragma Import(MSIL,SetMinThreads,"SetMinThreads");
   pragma Import(MSIL,UnsafeQueueUserWorkItem,"UnsafeQueueUserWorkItem");
   pragma Import(MSIL,UnsafeRegisterWaitForSingleObject,"UnsafeRegisterWaitForSingleObject");
end MSSyst.Threading.ThreadPool;
pragma Extensions_Allowed(Off);
pragma Import(MSIL,MSSyst.Threading.ThreadPool,
   ".ver 1:0:5000:0 .publickeytoken=( b7 7a 5c 56 19 34 e0 89 )",
   "[mscorlib]System.Threading.ThreadPool");
