Skip to content

Commit

Permalink
Merge pull request #334 from ska-sa/prepare-4.3.2b
Browse files Browse the repository at this point in the history
Add a missing type annotation for spead2.ThreadPool.set_affinity
  • Loading branch information
bmerry authored Jun 25, 2024
2 parents cb67549 + 1c89abf commit 1d68337
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Changelog
- Fix compatibility with numpy 2.0.
- Change the unit tests to allocate TCP and UDP ports dynamically.
- Add a series of tutorials to the manual.
- Add a missing type annotation for :py:meth:`spead2.ThreadPool.set_affinity`.
- Add a Jenkins configuration to test the ibverbs support on a SARAO-internal
Jenkins server.
- Bump versions of dependencies used in CI.
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ project(
'b_staticpic=false', # The default of true harms performance
]
)
shared_lib_version = '8.0.0'
shared_lib_version = '9.0.0'

compiler = meson.get_compiler('cpp')
py = import('python').find_installation(pure : false, modules : ['jinja2', 'pycparser', 'packaging'])
Expand Down
2 changes: 2 additions & 0 deletions src/spead2/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ class ThreadPool:
def __init__(self, threads: int = ...) -> None: ...
@overload
def __init__(self, threads: int, affinity: list[int]) -> None: ...
@staticmethod
def set_affinity(core: int) -> None: ...

class MemoryAllocator:
def __init__(self) -> None: ...
Expand Down

0 comments on commit 1d68337

Please sign in to comment.