winrt-Windows.System.Threading.Core 2.3.0__tar.gz → 3.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. {winrt_windows_system_threading_core-2.3.0 → winrt_windows_system_threading_core-3.0.0}/PKG-INFO +5 -5
  2. winrt_windows_system_threading_core-3.0.0/all-requirements.txt +4 -0
  3. {winrt_windows_system_threading_core-2.3.0 → winrt_windows_system_threading_core-3.0.0}/py.Windows.System.Threading.Core.cpp +93 -39
  4. {winrt_windows_system_threading_core-2.3.0 → winrt_windows_system_threading_core-3.0.0}/pyproject.toml +2 -2
  5. winrt_windows_system_threading_core-3.0.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_system_threading_core-2.3.0 → winrt_windows_system_threading_core-3.0.0}/requirements.txt +2 -2
  7. {winrt_windows_system_threading_core-2.3.0 → winrt_windows_system_threading_core-3.0.0}/setup.py +1 -1
  8. winrt_windows_system_threading_core-3.0.0/winrt/_winrt_windows_system_threading_core.pyi +47 -0
  9. winrt_windows_system_threading_core-3.0.0/winrt/windows/system/threading/core/__init__.py +18 -0
  10. {winrt_windows_system_threading_core-2.3.0 → winrt_windows_system_threading_core-3.0.0}/winrt_Windows.System.Threading.Core.egg-info/PKG-INFO +5 -5
  11. winrt_windows_system_threading_core-3.0.0/winrt_Windows.System.Threading.Core.egg-info/requires.txt +5 -0
  12. winrt_windows_system_threading_core-2.3.0/all-requirements.txt +0 -4
  13. winrt_windows_system_threading_core-2.3.0/pywinrt-version.txt +0 -1
  14. winrt_windows_system_threading_core-2.3.0/winrt/_winrt_windows_system_threading_core.pyi +0 -48
  15. winrt_windows_system_threading_core-2.3.0/winrt/windows/system/threading/core/__init__.py +0 -17
  16. winrt_windows_system_threading_core-2.3.0/winrt_Windows.System.Threading.Core.egg-info/requires.txt +0 -5
  17. {winrt_windows_system_threading_core-2.3.0 → winrt_windows_system_threading_core-3.0.0}/README.md +0 -0
  18. {winrt_windows_system_threading_core-2.3.0 → winrt_windows_system_threading_core-3.0.0}/setup.cfg +0 -0
  19. {winrt_windows_system_threading_core-2.3.0 → winrt_windows_system_threading_core-3.0.0}/winrt/windows/system/threading/core/py.typed +0 -0
  20. {winrt_windows_system_threading_core-2.3.0 → winrt_windows_system_threading_core-3.0.0}/winrt_Windows.System.Threading.Core.egg-info/SOURCES.txt +0 -0
  21. {winrt_windows_system_threading_core-2.3.0 → winrt_windows_system_threading_core-3.0.0}/winrt_Windows.System.Threading.Core.egg-info/dependency_links.txt +0 -0
  22. {winrt_windows_system_threading_core-2.3.0 → winrt_windows_system_threading_core-3.0.0}/winrt_Windows.System.Threading.Core.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.System.Threading.Core
3
- Version: 2.3.0
3
+ Version: 3.0.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -10,12 +10,12 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.3.0
15
+ Requires-Dist: winrt-runtime==3.0.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
18
- Requires-Dist: winrt-Windows.System.Threading[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.System.Threading[all]==3.0.0; extra == "all"
19
19
 
20
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
21
21
 
@@ -0,0 +1,4 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
+
3
+ winrt-Windows.Foundation[all]==3.0.0
4
+ winrt-Windows.System.Threading[all]==3.0.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
2
 
3
3
  #include "py.Windows.System.Threading.Core.h"
4
4
 
@@ -8,13 +8,13 @@ namespace py::cpp::Windows::System::Threading::Core
8
8
 
9
9
  static PyObject* _new_PreallocatedWorkItem(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
10
10
  {
11
- if (kwds != nullptr)
11
+ if (kwds)
12
12
  {
13
13
  py::set_invalid_kwd_args_error();
14
14
  return nullptr;
15
15
  }
16
16
 
17
- auto arg_count = PyTuple_Size(args);
17
+ auto arg_count = PyTuple_GET_SIZE(args);
18
18
  if (arg_count == 1)
19
19
  {
20
20
  try
@@ -80,7 +80,7 @@ namespace py::cpp::Windows::System::Threading::Core
80
80
 
81
81
  static PyObject* PreallocatedWorkItem_RunAsync(py::wrapper::Windows::System::Threading::Core::PreallocatedWorkItem* self, PyObject* args) noexcept
82
82
  {
83
- auto arg_count = PyTuple_Size(args);
83
+ auto arg_count = PyTuple_GET_SIZE(args);
84
84
 
85
85
  if (arg_count == 0)
86
86
  {
@@ -99,7 +99,11 @@ namespace py::cpp::Windows::System::Threading::Core
99
99
  return nullptr;
100
100
  }
101
101
 
102
- return py::convert(self->obj.RunAsync());
102
+ return py::convert([&]()
103
+ {
104
+ auto _gil = release_gil();
105
+ return self->obj.RunAsync();
106
+ }());
103
107
  }
104
108
  catch (...)
105
109
  {
@@ -142,20 +146,17 @@ namespace py::cpp::Windows::System::Threading::Core
142
146
  { "run_async", reinterpret_cast<PyCFunction>(PreallocatedWorkItem_RunAsync), METH_VARARGS, nullptr },
143
147
  { "_assign_array_", _assign_array_PreallocatedWorkItem, METH_O | METH_STATIC, nullptr },
144
148
  { "_from", reinterpret_cast<PyCFunction>(_from_PreallocatedWorkItem), METH_O | METH_STATIC, nullptr },
145
- { }
146
- };
149
+ { }};
147
150
 
148
151
  static PyGetSetDef _getset_PreallocatedWorkItem[] = {
149
- { }
150
- };
152
+ { }};
151
153
 
152
154
  static PyType_Slot _type_slots_PreallocatedWorkItem[] = {
153
155
  { Py_tp_new, reinterpret_cast<void*>(_new_PreallocatedWorkItem) },
154
156
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PreallocatedWorkItem) },
155
157
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PreallocatedWorkItem) },
156
158
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PreallocatedWorkItem) },
157
- { }
158
- };
159
+ { }};
159
160
 
160
161
  static PyType_Spec type_spec_PreallocatedWorkItem = {
161
162
  "winrt._winrt_windows_system_threading_core.PreallocatedWorkItem",
@@ -183,7 +184,7 @@ namespace py::cpp::Windows::System::Threading::Core
183
184
 
184
185
  static PyObject* SignalNotifier_AttachToEvent(PyObject* /*unused*/, PyObject* args) noexcept
185
186
  {
186
- auto arg_count = PyTuple_Size(args);
187
+ auto arg_count = PyTuple_GET_SIZE(args);
187
188
 
188
189
  if (arg_count == 2)
189
190
  {
@@ -205,7 +206,11 @@ namespace py::cpp::Windows::System::Threading::Core
205
206
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
206
207
  auto param1 = py::convert_to<winrt::Windows::System::Threading::Core::SignalHandler>(args, 1);
207
208
 
208
- return py::convert(winrt::Windows::System::Threading::Core::SignalNotifier::AttachToEvent(param0, param1));
209
+ return py::convert([&]()
210
+ {
211
+ auto _gil = release_gil();
212
+ return winrt::Windows::System::Threading::Core::SignalNotifier::AttachToEvent(param0, param1);
213
+ }());
209
214
  }
210
215
  catch (...)
211
216
  {
@@ -213,7 +218,18 @@ namespace py::cpp::Windows::System::Threading::Core
213
218
  return nullptr;
214
219
  }
215
220
  }
216
- else if (arg_count == 3)
221
+ else
222
+ {
223
+ py::set_invalid_arg_count_error(arg_count);
224
+ return nullptr;
225
+ }
226
+ }
227
+
228
+ static PyObject* SignalNotifier_AttachToEventWithTimeout(PyObject* /*unused*/, PyObject* args) noexcept
229
+ {
230
+ auto arg_count = PyTuple_GET_SIZE(args);
231
+
232
+ if (arg_count == 3)
217
233
  {
218
234
  try
219
235
  {
@@ -234,7 +250,11 @@ namespace py::cpp::Windows::System::Threading::Core
234
250
  auto param1 = py::convert_to<winrt::Windows::System::Threading::Core::SignalHandler>(args, 1);
235
251
  auto param2 = py::convert_to<winrt::Windows::Foundation::TimeSpan>(args, 2);
236
252
 
237
- return py::convert(winrt::Windows::System::Threading::Core::SignalNotifier::AttachToEvent(param0, param1, param2));
253
+ return py::convert([&]()
254
+ {
255
+ auto _gil = release_gil();
256
+ return winrt::Windows::System::Threading::Core::SignalNotifier::AttachToEvent(param0, param1, param2);
257
+ }());
238
258
  }
239
259
  catch (...)
240
260
  {
@@ -251,7 +271,7 @@ namespace py::cpp::Windows::System::Threading::Core
251
271
 
252
272
  static PyObject* SignalNotifier_AttachToSemaphore(PyObject* /*unused*/, PyObject* args) noexcept
253
273
  {
254
- auto arg_count = PyTuple_Size(args);
274
+ auto arg_count = PyTuple_GET_SIZE(args);
255
275
 
256
276
  if (arg_count == 2)
257
277
  {
@@ -273,7 +293,11 @@ namespace py::cpp::Windows::System::Threading::Core
273
293
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
274
294
  auto param1 = py::convert_to<winrt::Windows::System::Threading::Core::SignalHandler>(args, 1);
275
295
 
276
- return py::convert(winrt::Windows::System::Threading::Core::SignalNotifier::AttachToSemaphore(param0, param1));
296
+ return py::convert([&]()
297
+ {
298
+ auto _gil = release_gil();
299
+ return winrt::Windows::System::Threading::Core::SignalNotifier::AttachToSemaphore(param0, param1);
300
+ }());
277
301
  }
278
302
  catch (...)
279
303
  {
@@ -281,7 +305,18 @@ namespace py::cpp::Windows::System::Threading::Core
281
305
  return nullptr;
282
306
  }
283
307
  }
284
- else if (arg_count == 3)
308
+ else
309
+ {
310
+ py::set_invalid_arg_count_error(arg_count);
311
+ return nullptr;
312
+ }
313
+ }
314
+
315
+ static PyObject* SignalNotifier_AttachToSemaphoreWithTimeout(PyObject* /*unused*/, PyObject* args) noexcept
316
+ {
317
+ auto arg_count = PyTuple_GET_SIZE(args);
318
+
319
+ if (arg_count == 3)
285
320
  {
286
321
  try
287
322
  {
@@ -302,7 +337,11 @@ namespace py::cpp::Windows::System::Threading::Core
302
337
  auto param1 = py::convert_to<winrt::Windows::System::Threading::Core::SignalHandler>(args, 1);
303
338
  auto param2 = py::convert_to<winrt::Windows::Foundation::TimeSpan>(args, 2);
304
339
 
305
- return py::convert(winrt::Windows::System::Threading::Core::SignalNotifier::AttachToSemaphore(param0, param1, param2));
340
+ return py::convert([&]()
341
+ {
342
+ auto _gil = release_gil();
343
+ return winrt::Windows::System::Threading::Core::SignalNotifier::AttachToSemaphore(param0, param1, param2);
344
+ }());
306
345
  }
307
346
  catch (...)
308
347
  {
@@ -319,7 +358,7 @@ namespace py::cpp::Windows::System::Threading::Core
319
358
 
320
359
  static PyObject* SignalNotifier_Enable(py::wrapper::Windows::System::Threading::Core::SignalNotifier* self, PyObject* args) noexcept
321
360
  {
322
- auto arg_count = PyTuple_Size(args);
361
+ auto arg_count = PyTuple_GET_SIZE(args);
323
362
 
324
363
  if (arg_count == 0)
325
364
  {
@@ -338,7 +377,11 @@ namespace py::cpp::Windows::System::Threading::Core
338
377
  return nullptr;
339
378
  }
340
379
 
341
- self->obj.Enable();
380
+ {
381
+ auto _gil = release_gil();
382
+ self->obj.Enable();
383
+ }
384
+
342
385
  Py_RETURN_NONE;
343
386
  }
344
387
  catch (...)
@@ -356,7 +399,7 @@ namespace py::cpp::Windows::System::Threading::Core
356
399
 
357
400
  static PyObject* SignalNotifier_Terminate(py::wrapper::Windows::System::Threading::Core::SignalNotifier* self, PyObject* args) noexcept
358
401
  {
359
- auto arg_count = PyTuple_Size(args);
402
+ auto arg_count = PyTuple_GET_SIZE(args);
360
403
 
361
404
  if (arg_count == 0)
362
405
  {
@@ -375,7 +418,11 @@ namespace py::cpp::Windows::System::Threading::Core
375
418
  return nullptr;
376
419
  }
377
420
 
378
- self->obj.Terminate();
421
+ {
422
+ auto _gil = release_gil();
423
+ self->obj.Terminate();
424
+ }
425
+
379
426
  Py_RETURN_NONE;
380
427
  }
381
428
  catch (...)
@@ -420,20 +467,17 @@ namespace py::cpp::Windows::System::Threading::Core
420
467
  { "terminate", reinterpret_cast<PyCFunction>(SignalNotifier_Terminate), METH_VARARGS, nullptr },
421
468
  { "_assign_array_", _assign_array_SignalNotifier, METH_O | METH_STATIC, nullptr },
422
469
  { "_from", reinterpret_cast<PyCFunction>(_from_SignalNotifier), METH_O | METH_STATIC, nullptr },
423
- { }
424
- };
470
+ { }};
425
471
 
426
472
  static PyGetSetDef _getset_SignalNotifier[] = {
427
- { }
428
- };
473
+ { }};
429
474
 
430
475
  static PyType_Slot _type_slots_SignalNotifier[] = {
431
476
  { Py_tp_new, reinterpret_cast<void*>(_new_SignalNotifier) },
432
477
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SignalNotifier) },
433
478
  { Py_tp_methods, reinterpret_cast<void*>(_methods_SignalNotifier) },
434
479
  { Py_tp_getset, reinterpret_cast<void*>(_getset_SignalNotifier) },
435
- { }
436
- };
480
+ { }};
437
481
 
438
482
  static PyType_Spec type_spec_SignalNotifier = {
439
483
  "winrt._winrt_windows_system_threading_core.SignalNotifier",
@@ -443,14 +487,14 @@ namespace py::cpp::Windows::System::Threading::Core
443
487
  _type_slots_SignalNotifier};
444
488
 
445
489
  static PyGetSetDef getset_SignalNotifier_Static[] = {
446
- { }
447
- };
490
+ { }};
448
491
 
449
492
  static PyMethodDef methods_SignalNotifier_Static[] = {
450
493
  { "attach_to_event", reinterpret_cast<PyCFunction>(SignalNotifier_AttachToEvent), METH_VARARGS, nullptr },
494
+ { "attach_to_event_with_timeout", reinterpret_cast<PyCFunction>(SignalNotifier_AttachToEventWithTimeout), METH_VARARGS, nullptr },
451
495
  { "attach_to_semaphore", reinterpret_cast<PyCFunction>(SignalNotifier_AttachToSemaphore), METH_VARARGS, nullptr },
452
- { }
453
- };
496
+ { "attach_to_semaphore_with_timeout", reinterpret_cast<PyCFunction>(SignalNotifier_AttachToSemaphoreWithTimeout), METH_VARARGS, nullptr },
497
+ { }};
454
498
 
455
499
  static PyType_Slot type_slots_SignalNotifier_Static[] =
456
500
  {
@@ -460,14 +504,12 @@ namespace py::cpp::Windows::System::Threading::Core
460
504
  { }
461
505
  };
462
506
 
463
- static PyType_Spec type_spec_SignalNotifier_Static =
464
- {
507
+ static PyType_Spec type_spec_SignalNotifier_Static = {
465
508
  "winrt._winrt_windows_system_threading_core.SignalNotifier_Static",
466
509
  static_cast<int>(PyType_Type.tp_basicsize),
467
510
  static_cast<int>(PyType_Type.tp_itemsize),
468
511
  Py_TPFLAGS_DEFAULT,
469
- type_slots_SignalNotifier_Static
470
- };
512
+ type_slots_SignalNotifier_Static};
471
513
 
472
514
  // ----- Windows.System.Threading.Core Initialization --------------------
473
515
 
@@ -501,6 +543,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_threading_core(void) noexcept
501
543
  return nullptr;
502
544
  }
503
545
 
546
+ auto inspectable_meta_type = py::get_inspectable_meta_type();
547
+ if (!inspectable_meta_type)
548
+ {
549
+ return nullptr;
550
+ }
551
+
504
552
  auto object_type = py::get_object_type();
505
553
  if (!object_type)
506
554
  {
@@ -514,13 +562,19 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_threading_core(void) noexcept
514
562
  return nullptr;
515
563
  }
516
564
 
517
- py::pytype_handle PreallocatedWorkItem_type{py::register_python_type(module.get(), &type_spec_PreallocatedWorkItem, object_bases.get(), nullptr)};
565
+ py::pytype_handle PreallocatedWorkItem_type{py::register_python_type(module.get(), &type_spec_PreallocatedWorkItem, object_bases.get(), inspectable_meta_type)};
518
566
  if (!PreallocatedWorkItem_type)
519
567
  {
520
568
  return nullptr;
521
569
  }
522
570
 
523
- py::pyobj_handle type_SignalNotifier_Static{PyType_FromSpec(&type_spec_SignalNotifier_Static)};
571
+ py::pyobj_handle SignalNotifier_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
572
+ if (!SignalNotifier_Static_bases)
573
+ {
574
+ return nullptr;
575
+ }
576
+
577
+ py::pyobj_handle type_SignalNotifier_Static{PyType_FromSpecWithBases(&type_spec_SignalNotifier_Static, SignalNotifier_Static_bases.get())};
524
578
  if (!type_SignalNotifier_Static)
525
579
  {
526
580
  return nullptr;
@@ -16,7 +16,7 @@ classifiers = [
16
16
  "Intended Audience :: Developers",
17
17
  ]
18
18
  dynamic = ["version", "dependencies", "optional-dependencies"]
19
- requires-python = ">=3.9,<3.14"
19
+ requires-python = ">=3.9"
20
20
 
21
21
  [project.urls]
22
22
  # Homepage = "https://github.com/pywinrt/pywinrt"
@@ -34,7 +34,7 @@ optional-dependencies.all = { file = "all-requirements.txt" }
34
34
 
35
35
  [tool.cibuildwheel]
36
36
  # use local winrt-sdk build dependency
37
- environment = { PYTHONPATH="../winrt-sdk/src" }
37
+ environment = { PYTHONPATH="../../winrt-sdk/src" }
38
38
  # don't install winrt-sdk from PyPI
39
39
  build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
40
40
  before-build = "uv pip install setuptools"
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
2
 
3
- winrt-runtime==2.3.0
3
+ winrt-runtime==3.0.0
@@ -19,7 +19,7 @@ class build_ext_ex(build_ext):
19
19
 
20
20
 
21
21
  setup(
22
- cmdclass = {'build_ext': build_ext_ex},
22
+ cmdclass={"build_ext": build_ext_ex},
23
23
  ext_modules=[
24
24
  Extension(
25
25
  "winrt._winrt_windows_system_threading_core",
@@ -0,0 +1,47 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+
10
+ import winrt._winrt
11
+ import winrt.system
12
+ import winrt.windows.foundation as windows_foundation
13
+ import winrt.windows.system.threading as windows_system_threading
14
+
15
+ from winrt.windows.system.threading.core import SignalHandler
16
+
17
+ Self = typing.TypeVar('Self')
18
+
19
+ @typing.final
20
+ class PreallocatedWorkItem(winrt.system.Object):
21
+ @typing.overload
22
+ def __new__(cls: typing.Type[Self], handler: windows_system_threading.WorkItemHandler) -> Self: ...
23
+ @typing.overload
24
+ def __new__(cls: typing.Type[Self], handler: windows_system_threading.WorkItemHandler, priority: windows_system_threading.WorkItemPriority) -> Self: ...
25
+ @typing.overload
26
+ def __new__(cls: typing.Type[Self], handler: windows_system_threading.WorkItemHandler, priority: windows_system_threading.WorkItemPriority, options: windows_system_threading.WorkItemOptions) -> Self: ...
27
+ # Windows.Foundation.IAsyncAction Windows.System.Threading.Core.PreallocatedWorkItem::RunAsync()
28
+ def run_async(self) -> windows_foundation.IAsyncAction: ...
29
+
30
+ @typing.final
31
+ class SignalNotifier_Static(winrt._winrt.IInspectable_Static):
32
+ # Windows.System.Threading.Core.SignalNotifier Windows.System.Threading.Core.SignalNotifier::AttachToEvent(System.String,Windows.System.Threading.Core.SignalHandler)
33
+ def attach_to_event(cls, name: str, handler: SignalHandler, /) -> SignalNotifier: ...
34
+ # Windows.System.Threading.Core.SignalNotifier Windows.System.Threading.Core.SignalNotifier::AttachToEvent(System.String,Windows.System.Threading.Core.SignalHandler,Windows.Foundation.TimeSpan)
35
+ def attach_to_event_with_timeout(cls, name: str, handler: SignalHandler, timeout: datetime.timedelta, /) -> SignalNotifier: ...
36
+ # Windows.System.Threading.Core.SignalNotifier Windows.System.Threading.Core.SignalNotifier::AttachToSemaphore(System.String,Windows.System.Threading.Core.SignalHandler)
37
+ def attach_to_semaphore(cls, name: str, handler: SignalHandler, /) -> SignalNotifier: ...
38
+ # Windows.System.Threading.Core.SignalNotifier Windows.System.Threading.Core.SignalNotifier::AttachToSemaphore(System.String,Windows.System.Threading.Core.SignalHandler,Windows.Foundation.TimeSpan)
39
+ def attach_to_semaphore_with_timeout(cls, name: str, handler: SignalHandler, timeout: datetime.timedelta, /) -> SignalNotifier: ...
40
+
41
+ @typing.final
42
+ class SignalNotifier(winrt.system.Object, metaclass=SignalNotifier_Static):
43
+ # System.Void Windows.System.Threading.Core.SignalNotifier::Enable()
44
+ def enable(self) -> None: ...
45
+ # System.Void Windows.System.Threading.Core.SignalNotifier::Terminate()
46
+ def terminate(self) -> None: ...
47
+
@@ -0,0 +1,18 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
+
3
+ import typing
4
+ import uuid as _uuid
5
+
6
+ import winrt.system
7
+ from winrt._winrt_windows_system_threading_core import (
8
+ PreallocatedWorkItem,
9
+ SignalNotifier,
10
+ )
11
+
12
+ __all__ = [
13
+ "PreallocatedWorkItem",
14
+ "SignalNotifier",
15
+ "SignalHandler",
16
+ ]
17
+
18
+ SignalHandler = typing.Callable[[SignalNotifier, bool], None]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.System.Threading.Core
3
- Version: 2.3.0
3
+ Version: 3.0.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -10,12 +10,12 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.3.0
15
+ Requires-Dist: winrt-runtime==3.0.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
18
- Requires-Dist: winrt-Windows.System.Threading[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.System.Threading[all]==3.0.0; extra == "all"
19
19
 
20
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
21
21
 
@@ -0,0 +1,5 @@
1
+ winrt-runtime==3.0.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==3.0.0
5
+ winrt-Windows.System.Threading[all]==3.0.0
@@ -1,4 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
-
3
- winrt-Windows.Foundation[all]==2.3.0
4
- winrt-Windows.System.Threading[all]==2.3.0
@@ -1,48 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
-
3
- import datetime
4
- import sys
5
- import types
6
- import typing
7
- import uuid as _uuid
8
- from builtins import property as _property
9
-
10
- import winrt._winrt
11
- import winrt.system
12
- import winrt.windows.foundation as windows_foundation
13
- import winrt.windows.system.threading as windows_system_threading
14
-
15
- from winrt.windows.system.threading.core import SignalHandler
16
-
17
- Self = typing.TypeVar('Self')
18
-
19
- @typing.final
20
- class PreallocatedWorkItem(winrt.system.Object):
21
- @staticmethod
22
- def _from(obj: winrt.system.Object, /) -> PreallocatedWorkItem: ...
23
- @typing.overload
24
- def __new__(cls: typing.Type[PreallocatedWorkItem], handler: typing.Optional[windows_system_threading.WorkItemHandler]) -> PreallocatedWorkItem: ...
25
- @typing.overload
26
- def __new__(cls: typing.Type[PreallocatedWorkItem], handler: typing.Optional[windows_system_threading.WorkItemHandler], priority: windows_system_threading.WorkItemPriority) -> PreallocatedWorkItem: ...
27
- @typing.overload
28
- def __new__(cls: typing.Type[PreallocatedWorkItem], handler: typing.Optional[windows_system_threading.WorkItemHandler], priority: windows_system_threading.WorkItemPriority, options: windows_system_threading.WorkItemOptions) -> PreallocatedWorkItem: ...
29
- def run_async(self) -> windows_foundation.IAsyncAction: ...
30
-
31
- @typing.final
32
- class SignalNotifier_Static(type):
33
- @typing.overload
34
- def attach_to_event(cls, name: str, handler: typing.Optional[SignalHandler], /) -> typing.Optional[SignalNotifier]: ...
35
- @typing.overload
36
- def attach_to_event(cls, name: str, handler: typing.Optional[SignalHandler], timeout: datetime.timedelta, /) -> typing.Optional[SignalNotifier]: ...
37
- @typing.overload
38
- def attach_to_semaphore(cls, name: str, handler: typing.Optional[SignalHandler], /) -> typing.Optional[SignalNotifier]: ...
39
- @typing.overload
40
- def attach_to_semaphore(cls, name: str, handler: typing.Optional[SignalHandler], timeout: datetime.timedelta, /) -> typing.Optional[SignalNotifier]: ...
41
-
42
- @typing.final
43
- class SignalNotifier(winrt.system.Object, metaclass=SignalNotifier_Static):
44
- @staticmethod
45
- def _from(obj: winrt.system.Object, /) -> SignalNotifier: ...
46
- def enable(self) -> None: ...
47
- def terminate(self) -> None: ...
48
-
@@ -1,17 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
-
3
- import typing
4
- import uuid as _uuid
5
-
6
- import winrt.system
7
- from winrt import _winrt_windows_system_threading_core
8
-
9
- __all__ = [
10
- "PreallocatedWorkItem",
11
- "SignalNotifier",
12
- "SignalHandler",
13
- ]
14
-
15
- PreallocatedWorkItem = _winrt_windows_system_threading_core.PreallocatedWorkItem
16
- SignalNotifier = _winrt_windows_system_threading_core.SignalNotifier
17
- SignalHandler = typing.Callable[[typing.Optional[SignalNotifier], bool], None]
@@ -1,5 +0,0 @@
1
- winrt-runtime==2.3.0
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.3.0
5
- winrt-Windows.System.Threading[all]==2.3.0