2025-03-14 00:10:23 +00:00
|
|
|
import platform
|
|
|
|
|
2025-03-13 23:41:30 +00:00
|
|
|
from ._chan import (
|
2025-03-14 00:10:23 +00:00
|
|
|
_connect_chan as _connect_chan,
|
|
|
|
MsgTransport as MsgTransport,
|
|
|
|
Channel as Channel
|
2025-03-13 23:41:30 +00:00
|
|
|
)
|
|
|
|
|
2025-03-14 00:10:23 +00:00
|
|
|
if platform.system() == 'Linux':
|
|
|
|
from ._linux import (
|
|
|
|
EFD_SEMAPHORE as EFD_SEMAPHORE,
|
|
|
|
EFD_CLOEXEC as EFD_CLOEXEC,
|
|
|
|
EFD_NONBLOCK as EFD_NONBLOCK,
|
|
|
|
open_eventfd as open_eventfd,
|
|
|
|
write_eventfd as write_eventfd,
|
|
|
|
read_eventfd as read_eventfd,
|
|
|
|
close_eventfd as close_eventfd,
|
|
|
|
EventFD as EventFD,
|
2025-03-14 00:15:16 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
from ._ringbuf import (
|
2025-03-14 00:10:23 +00:00
|
|
|
RingBuffSender as RingBuffSender,
|
|
|
|
RingBuffReceiver as RingBuffReceiver
|
|
|
|
)
|