MCPcopy Create free account
hub / github.com/COVESA/vsomeip / init

Function init

implementation/endpoints/src/abstract_socket_factory.cpp:39–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 **/
38static std::shared_ptr<abstract_socket_factory> _factory;
39static std::shared_ptr<abstract_socket_factory> init() {
40 if (!_factory) {
41 _factory = std::make_shared<asio_socket_factory>();
42 }
43 return _factory;
44}
45
46void set_abstract_factory(std::shared_ptr<abstract_socket_factory> ptr) {
47 _factory = ptr;

Callers 7

TEST_FFunction · 0.85
runMethod · 0.85
runMethod · 0.85
TEST_FFunction · 0.85
loadMethod · 0.85
load_dataMethod · 0.85
getMethod · 0.85

Calls

no outgoing calls

Tested by 4

TEST_FFunction · 0.68
runMethod · 0.68
runMethod · 0.68
TEST_FFunction · 0.68