kirr has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmocom-bb/+/40060?usp=email )
Change subject: trx_toolkit/_fake_trx: Switch Runner to cdef class
......................................................................
trx_toolkit/_fake_trx: Switch Runner to cdef class
- Put fields into the object struct; fields are now accessed directly
via that C-level struct instead of via __dict__ lookup. Cannot
properly type them though yet. This will be fixed in follow-up patches.
- there are no pyx-level users of Runner so no need to change import ->
cimport anywhere.
Change-Id: I5c65c77f95de596b1aca62beaeb23d3cf5678996
---
M src/target/trx_toolkit/_fake_trx.pyx
1 file changed, 5 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/60/40060/1
diff --git a/src/target/trx_toolkit/_fake_trx.pyx b/src/target/trx_toolkit/_fake_trx.pyx
index 92573f8..c17c16d 100644
--- a/src/target/trx_toolkit/_fake_trx.pyx
+++ b/src/target/trx_toolkit/_fake_trx.pyx
@@ -373,7 +373,11 @@
# Runner organizes execution of several FakeTRX instances with common clock.
-class Runner:
+cdef class Runner:
+ cdef object clck_gen # CLCKGen
+ cdef object burst_fwd # BurstForwarder
+ cdef list[Transceiver] trx_list
+
def __init__(self, clck_gen, trx_list):
self.clck_gen = clck_gen
self.trx_list = trx_list.trx_list
--
To view, visit
https://gerrit.osmocom.org/c/osmocom-bb/+/40060?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: I5c65c77f95de596b1aca62beaeb23d3cf5678996
Gerrit-Change-Number: 40060
Gerrit-PatchSet: 1
Gerrit-Owner: kirr <kirr(a)nexedi.com>
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-CC: osmith <osmith(a)sysmocom.de>
Gerrit-CC: pespin <pespin(a)sysmocom.de>