Пример #1
0
        private long ComputeJobCreate(long memPtr)
        {
            using (PlatformMemoryStream stream = IgniteManager.Memory.Get(memPtr).GetStream())
            {
                ComputeJobHolder job = ComputeJobHolder.CreateJob(_ignite, stream);

                return(_handleRegistry.Allocate(job));
            }
        }
Пример #2
0
        private long ComputeJobCreate(void *target, long memPtr)
        {
            return(SafeCall(() =>
            {
                using (PlatformMemoryStream stream = IgniteManager.Memory.Get(memPtr).GetStream())
                {
                    ComputeJobHolder job = ComputeJobHolder.CreateJob(_ignite, stream);

                    return _handleRegistry.Allocate(job);
                }
            }));
        }