コード例 #1
0
        internal unsafe void SetInformationJob <T>(JobInformationClass infoClass, ref T buff) where T : unmanaged
        {
            fixed(void *buffP = &buff)
            {
                bool success = SetInformationJobObject(handle, infoClass, buffP, (uint)sizeof(T));

                if (!success)
                {
                    throw new Win32Exception();
                }
            }
        }
コード例 #2
0
        internal unsafe T QueryInformationJob <T>(JobInformationClass infoClass, out T buff) where T : unmanaged
        {
            fixed(void *buffP = &buff)
            {
                bool success = QueryInformationJobObject(handle, infoClass, buffP, (uint)sizeof(T), out _);

                if (!success)
                {
                    throw new Win32Exception();
                }
                return(buff);
            }
        }
コード例 #3
0
 public static extern bool SetInformationJobObject(IntPtr hJob, JobInformationClass infoClass, in JobCpuRateControlInformation info, int size);
コード例 #4
0
 public unsafe static extern bool QueryInformationJobObject(IntPtr handle, JobInformationClass infoClass, out JobBasicAccoutingInformation info, int size, int *returned = null);
コード例 #5
0
 public unsafe static extern bool QueryInformationJobObject(IntPtr handle, JobInformationClass infoClass, out JobBasicProcessIdList processList, int size, int *returned = null);
コード例 #6
0
 public unsafe static extern bool QueryInformationJobObject(IntPtr handle, JobInformationClass infoClass, out JobExtendedLimitInformation info, int size, int *returned = null);
コード例 #7
0
 internal static extern unsafe bool SetInformationJobObject(SafeJobHandle handle, JobInformationClass informationClass, void *buffer, uint bufferLength);
コード例 #8
0
 internal static extern unsafe bool QueryInformationJobObject(SafeJobHandle handle, JobInformationClass informationClass, void *buffer, uint bufferLength, out uint returnLength);