threadingRequirement
P90880
predicate
Indicates the conditions or constraints under which an operation must be executed with respect to threads (e.g., which thread or threading model is required).
Observed surface forms (3)
- threadModel ×3
- threadSafetyNote ×1
- threadingConstraint ×1
Sample triples (10)
| Subject | Object |
|---|---|
| FindText | must be called from a thread with a message loop ⓘ |
| GetLastError | last-error code is maintained per thread, not per process via predicate surface "threadSafetyNote" ⓘ |
| NSAutoreleasePool | each thread should create its own autorelease pool ⓘ |
|
OffscreenCanvas (in supporting browsers)
surface form:
OffscreenCanvas
|
multi-threaded via workers via predicate surface "threadModel" ⓘ |
| PageSetupDlg | must be called from thread with message loop ⓘ |
| PrintDlg | must be called from thread with message loop ⓘ |
|
PrintManager API
surface form:
PrintManager
|
print() must be called from main thread ⓘ |
| ThreadStart | managed threading via predicate surface "threadModel" ⓘ |
| android.print.PrintDocumentAdapter | callback methods are invoked on the main thread via predicate surface "threadingConstraint" ⓘ |
|
std::thread::spawn function
surface form:
std::thread::spawn
|
1:1 mapping between Rust threads and OS threads via predicate surface "threadModel" ⓘ |