You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
TCP transport cannot be built without thread support.
I'm getting errors:
In file included from erpc/erpc_c/setup/erpc_setup_tcp.cpp:11:
/erpc/erpc_c/transports/erpc_tcp_transport.h:89:5: error: ‘Thread’ does not name a type
89 | Thread m_serverThread; /!< Pointer to server thread. /
| ^~~~~~
make[2]: *** [CMakeFiles/erpc_main.dir/build.make:118: CMakeFiles/erpc_main.dir/erpc/erpc_c/setup/erpc_setup_tcp.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from erpc/erpc_c/transports/erpc_tcp_transport.cpp:10:
erpc/erpc_c/transports/erpc_tcp_transport.h:89:5: error: ‘Thread’ does not name a type
89 | Thread m_serverThread; /!< Pointer to server thread. /
| ^~~~~~
erpc/erpc_c/transports/erpc_tcp_transport.cpp: In constructor ‘erpc::TCPTransport::TCPTransport(bool)’:
erpc/erpc_c/transports/erpc_tcp_transport.cpp:48:3: error: class ‘erpc::TCPTransport’ does not have any field named ‘m_serverThread’
48 | , m_serverThread(serverThreadStub)
| ^~~~~~~~~~~~~~
erpc/erpc_c/transports/erpc_tcp_transport.cpp: In constructor ‘erpc::TCPTransport::TCPTransport(const char, uint16_t, bool)’:
erpc/erpc_c/transports/erpc_tcp_transport.cpp:58:3: error: class ‘erpc::TCPTransport’ does not have any field named ‘m_serverThread’
58 | , m_serverThread(serverThreadStub)
| ^~~~~~~~~~~~~~
erpc/erpc_c/transports/erpc_tcp_transport.cpp: In member function ‘virtual erpc_status_t erpc::TCPTransport::open()’:
erpc/erpc_c/transports/erpc_tcp_transport.cpp:78:9: error: ‘m_serverThread’ was not declared in this scope; did you mean ‘serverThread’?
78 | m_serverThread.start(this);
| ^~~~~~~~~~~~~~
| serverThread
erpc/erpc_c/transports/erpc_tcp_transport.cpp: In member function ‘virtual erpc_status_t erpc::TCPTransport::underlyingReceive(uint8_t, uint32_t)’:
erpc/erpc_c/transports/erpc_tcp_transport.cpp:233:9: error: ‘Thread’ has not been declared
233 | Thread::sleep(10000);
| ^~~~~~
To Reproduce
Disable thread in erpc_config.h #define ERPC_THREADS (ERPC_THREADS_NONE)
Build the erpc_tcp_transport.cpp.
Desktop (please complete the following information):
OS: Ubuntu 20.04.3 LTS
eRPC Version: 1.9.1 release.
Steps you didn't forgot to do
I checked if there is no related issue opened/closed.
I checked that there doesn't exist opened PR which is solving this issue.
Additional context
The text was updated successfully, but these errors were encountered:
Describe the bug
TCP transport cannot be built without thread support.
I'm getting errors:
To Reproduce
#define ERPC_THREADS (ERPC_THREADS_NONE)
Desktop (please complete the following information):
Steps you didn't forgot to do
Additional context
The text was updated successfully, but these errors were encountered: