5#include "Containers/Array.h"
6#include "Containers/UnrealString.h"
8#include "GenericPlatform/GenericPlatformAffinity.h"
9#include "HAL/PlatformCrt.h"
10#include "HAL/PlatformMisc.h"
11#include "Misc/EnumClassFlags.h"
12#include "Templates/Function.h"
23#include <mach/mach_time.h>
27#if !defined(__clang__
)
31# elif defined(_M_ARM64)
32# include <arm64intr.h>
38template <
typename FuncType>
class TFunctionRef;
45
46
47
78template<
typename T, T InvalidHandleValue >
129
130
134
135
148
149
150
151
152
153 virtual bool TryLock(uint64 NanosecondsToWait) = 0;
159
160
161
162
166
167
168
169
220
221
222
223
227
228
229
230
234
235
236
237
241
242
243
244
248
249
250
299 static const TCHAR*
UserName(
bool bOnlyAlphaNumeric =
true);
308
309
310
311
312
313
320
321
322
323
330
331
332
333
337
338
339
340
341
345
346
347
348
349
350
351
352
353
354
358
359
360
361
362
366
367
368
369
370
374
375
379
380
381
382
383
387
388
389
390
391
395
396
397
398
399
400
401
402
403
407
408
412
413
414
415
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433 static FProcHandle CreateProc(
const TCHAR* URL,
const TCHAR* Parms,
bool bLaunchDetached,
bool bLaunchHidden,
bool bLaunchReallyHidden, uint32* OutProcessID, int32 PriorityModifier,
const TCHAR* OptionalWorkingDirectory,
void* PipeWriteChild,
void* PipeReadChild =
nullptr);
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451 static FProcHandle CreateProc(
const TCHAR* URL,
const TCHAR* Parms,
bool bLaunchDetached,
bool bLaunchHidden,
bool bLaunchReallyHidden, uint32* OutProcessID, int32 PriorityModifier,
const TCHAR* OptionalWorkingDirectory,
void* PipeWriteChild,
void* PipeReadChild,
void* PipeStdErrChild);
454
455
456
457
458
462
463
464
465
466
470
471
472
473
477
478
479
480
484
485
486
487
491
492
493
494
495
498 TFunctionRef<
bool(uint32 ProcessId,
const TCHAR* ApplicationName)> Predicate);
508
509
510
511
512
513
514
533
534
535
536
537
538
539
540
541 static bool ExecProcess(
const TCHAR* URL,
const TCHAR* Params, int32* OutReturnCode,
FString* OutStdOut,
FString* OutStdErr,
const TCHAR* OptionalWorkingDirectory = NULL,
bool bShouldEndWithParentProcess =
false);
544
545
546
550
551
552
553
554
555
556
557
558
562
563
564
565
582
583
584
585
586
590
591
592
593
594
595
597 UE_DEPRECATED(5.0,
"Please use GetSynchEventFromPool to create a new event, and ReturnSynchEventToPool to release the event.")
601
602
603
604
605
606
610
611
615
616
617
618
619
623
624
625
626
630
631
632
633
634
635
636 static void ClosePipe(
void* ReadPipe,
void* WritePipe );
639
640
641
642
643
644
645
646
647
648
649
650 static bool CreatePipe(
void*& ReadPipe,
void*& WritePipe,
bool bWritePipeLocal =
false);
653
654
655
656
657
658
662
663
664
665
666
667
668
672
673
674
675
676
677
678
679
683
684
685
686
687
688
689
690
691
692 static bool WritePipe(
void* WritePipe,
const uint8* Data,
const int32 DataLength, int32* OutDataLength =
nullptr);
696
697
698
699
706
707
708
709
710
711
712
716
717
718
719
720
721
722
726
727
728
729
733
734
735
736
740
741
745
746
750
751
755
756
760
761
765
766
767
772#elif PLATFORM_CPU_ARM_FAMILY
773# if !defined(__clang__)
779# error Unsupported architecture!
784
785
786
796#elif __has_builtin(__builtin_readcyclecounter)
799# error Unsupported architecture!
811#if defined(_MSC_VER
) && !defined(__clang__
)
813#elif __has_builtin
(__builtin_ia32_tpause)
816# error Unsupported architecture!
#define UE_DEPRECATED(Version, Message)
FORCEINLINE TProcHandle & operator=(const TProcHandle &Other)
FORCEINLINE TProcHandle(T Other)
FORCEINLINE T Get() const
FORCEINLINE TProcHandle()
FORCEINLINE bool IsValid() const