Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbfec6a4

Browse files
authored
Update control.fs
1 parenta7ce0d5 commitbfec6a4

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

‎src/fsharp/FSharp.Core/control.fs‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -407,29 +407,13 @@ namespace Microsoft.FSharp.Control
407407
WaitCallback(fun o->
408408
letf= unbox o: unit-> AsyncReturn
409409
trampolineHolder.Execute f|> unfake)
410-
411-
letstartThreadWithTrampoline(trampolineHolder:TrampolineHolder)(f:unit->AsyncReturn)=
412-
#if FX_NO_THREAD
413-
ifnot(ThreadPool.QueueUserWorkItem((waitCallbackForQueueWorkItemWithTrampoline trampolineHolder), f|> box))then
414-
failwith"failed to queue user work item"
415-
FakeUnit
416-
#else
417-
(new Thread((fun _-> trampolineHolder.Execute f|> unfake), IsBackground=true)).Start()
418-
FakeUnit
419-
#endif
420-
421410
#else
422411

423412
// Statically preallocate the delegate
424413
letthreadStartCallbackForStartThreadWithTrampoline=
425414
ParameterizedThreadStart(fun o->
426415
let(trampolineHolder,f)= unbox o: TrampolineHolder*(unit-> AsyncReturn)
427416
trampolineHolder.Execute f|> unfake)
428-
429-
// This should be the only call to Thread.Start in this library. We must always install a trampoline.
430-
letstartThreadWithTrampoline(trampolineHolder:TrampolineHolder)(f:unit->AsyncReturn)=
431-
(new Thread(threadStartCallbackForStartThreadWithTrampoline,IsBackground=true)).Start((trampolineHolder,f)|>box)
432-
FakeUnit
433417
#endif
434418

435419
letstartAsync cancellationToken cont econt ccont p=

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp