Skip to content

Commit 9c1608e

Browse files
authored
40 update demo project (#43)
* Updated demo project * Update demo to adapt to the new changes of areg-sdk * Update submodule after bug fix. * update demo and areg-sdk submodules
1 parent 30c8108 commit 9c1608e

File tree

21 files changed

+26
-26
lines changed

21 files changed

+26
-26
lines changed

demo/01_minimalrpc/src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ constexpr char const _modelName[]{ "ServiceModel" };
6868
// Describe model, register the service and the client in 2 different threads "Thread1" and "Thread2"
6969
BEGIN_MODEL(_modelName)
7070
// Thread 1 without watchdog, contains a service provider
71-
BEGIN_REGISTER_THREAD( "Thread1", NECommon::WATCHDOG_IGNORE )
71+
BEGIN_REGISTER_THREAD( "Thread1" )
7272
BEGIN_REGISTER_COMPONENT( "ServiceProvider", ServiceProvider )
7373
REGISTER_IMPLEMENT_SERVICE( NEHelloService::ServiceName, NEHelloService::InterfaceVersion )
7474
END_REGISTER_COMPONENT( "ServiceProvider" )
7575
END_REGISTER_THREAD( "Thread1" )
7676

7777
// Thread 2 without watchdog, contains a service consumer
78-
BEGIN_REGISTER_THREAD( "Thread2", NECommon::WATCHDOG_IGNORE )
78+
BEGIN_REGISTER_THREAD( "Thread2" )
7979
BEGIN_REGISTER_COMPONENT( "ServiceClient", ServiceConsumer )
8080
REGISTER_DEPENDENCY( "ServiceProvider" ) /* dependency reference to the remote service*/
8181
END_REGISTER_COMPONENT( "ServiceClient" )

demo/02_minimalipc/src/consumeripc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ constexpr char const _modelName[]{ "ServiceModel" };
6262
// Describe model, register the service and the client in 2 different threads "Thread1" and "Thread2"
6363
BEGIN_MODEL(_modelName)
6464
// Thread 1 without watchdog, contains a service consumer
65-
BEGIN_REGISTER_THREAD( "Thread1", NECommon::WATCHDOG_IGNORE )
65+
BEGIN_REGISTER_THREAD( "Thread1" )
6666
BEGIN_REGISTER_COMPONENT( "ServiceClient", ServiceConsumer )
6767
REGISTER_DEPENDENCY( "ServiceProvider" ) /* dependency reference to the remote service*/
6868
END_REGISTER_COMPONENT( "ServiceClient" )

demo/02_minimalipc/src/provideripc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ constexpr char const _modelName[]{ "ServiceModel" };
5353
// Describe model, register the service and the client in 2 different threads "Thread1" and "Thread2"
5454
BEGIN_MODEL(_modelName)
5555
// Thread 1, provides a service
56-
BEGIN_REGISTER_THREAD( "Thread1", NECommon::WATCHDOG_IGNORE )
56+
BEGIN_REGISTER_THREAD( "Thread1" )
5757
BEGIN_REGISTER_COMPONENT( "ServiceProvider", ServiceProvider )
5858
REGISTER_IMPLEMENT_SERVICE( NEHelloService::ServiceName, NEHelloService::InterfaceVersion )
5959
END_REGISTER_COMPONENT( "ServiceProvider" )

demo/03_helloservice/multiprocess/clientproc/src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const String _client(NEUtilities::generateName("ServiceClient"));
2626
// Describe model, register the service consumer (client)
2727
BEGIN_MODEL(_modelName)
2828

29-
BEGIN_REGISTER_THREAD( "Thread1", NECommon::WATCHDOG_IGNORE)
29+
BEGIN_REGISTER_THREAD( "Thread1" )
3030
BEGIN_REGISTER_COMPONENT( _client, ClientComponent )
3131
REGISTER_DEPENDENCY( "ServiceComponent" ) /* reference to the service*/
3232
END_REGISTER_COMPONENT( _client )

demo/03_helloservice/multiprocess/serviceproc/src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ constexpr char const _modelName[]{ "ServiceModel" };
2121
// Describe model, register the provided service in this model
2222
BEGIN_MODEL(_modelName)
2323

24-
BEGIN_REGISTER_THREAD( "Thread1", NECommon::WATCHDOG_IGNORE )
24+
BEGIN_REGISTER_THREAD( "Thread1" )
2525
BEGIN_REGISTER_COMPONENT( "ServiceComponent", ServiceComponent )
2626
REGISTER_IMPLEMENT_SERVICE( NEHelloService::ServiceName, NEHelloService::InterfaceVersion )
2727
END_REGISTER_COMPONENT( "ServiceComponent" )

demo/03_helloservice/onethread/src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ constexpr char const _modelName[]{ "ServiceModel" };
2222
// Describe model, register the service and the client in one thread "Thread1"
2323
BEGIN_MODEL(_modelName)
2424

25-
BEGIN_REGISTER_THREAD( "Thread1", NECommon::WATCHDOG_IGNORE )
25+
BEGIN_REGISTER_THREAD( "Thread1" )
2626
// register service in the thread
2727
BEGIN_REGISTER_COMPONENT("ServiceComponent", ServiceComponent )
2828
REGISTER_IMPLEMENT_SERVICE( NEHelloService::ServiceName, NEHelloService::InterfaceVersion )

demo/03_helloservice/twothreads/src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ constexpr char const _modelName[]{ "ServiceModel" };
2222
// Describe model, register the service and the client in 2 different threads "Thread1" and "Thread2"
2323
BEGIN_MODEL(_modelName)
2424
// Thread 1, provides a service
25-
BEGIN_REGISTER_THREAD( "Thread1", NECommon::WATCHDOG_IGNORE )
25+
BEGIN_REGISTER_THREAD( "Thread1" )
2626
BEGIN_REGISTER_COMPONENT( "ServiceComponent", ServiceComponent )
2727
REGISTER_IMPLEMENT_SERVICE( NEHelloService::ServiceName, NEHelloService::InterfaceVersion )
2828
END_REGISTER_COMPONENT( "ServiceComponent" )
2929
END_REGISTER_THREAD( "Thread1" )
3030

3131
// Thread 2, is a service client.
32-
BEGIN_REGISTER_THREAD( "Thread2", NECommon::WATCHDOG_IGNORE )
32+
BEGIN_REGISTER_THREAD( "Thread2" )
3333
BEGIN_REGISTER_COMPONENT( "ServiceClient", ClientComponent )
3434
REGISTER_DEPENDENCY( "ServiceComponent" ) /* reference to the service*/
3535
END_REGISTER_COMPONENT( "ServiceClient" )

demo/13_locsvc/locservice/src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ constexpr char const _roleName[] { "TestServiceComponent" }; //!< Service rol
3636
BEGIN_MODEL(_modelName)
3737

3838
// define component thread
39-
BEGIN_REGISTER_THREAD( "TestServiceThread", NECommon::WATCHDOG_IGNORE)
39+
BEGIN_REGISTER_THREAD( "TestServiceThread" )
4040
// define component, set role name. This will trigger default 'create' and 'delete' methods of component
4141
BEGIN_REGISTER_COMPONENT(_roleName, ServicingComponent )
4242
// register HelloWorld service implementation.
@@ -53,7 +53,7 @@ BEGIN_MODEL(_modelName)
5353
//////////////////////////////////////////////////////////////////////////
5454

5555
// define component thread
56-
BEGIN_REGISTER_THREAD( "TestClientThread", NECommon::WATCHDOG_IGNORE)
56+
BEGIN_REGISTER_THREAD( "TestClientThread" )
5757
// define component, set role name. This will trigger default 'create' and 'delete' methods of component
5858
BEGIN_REGISTER_COMPONENT( "TestServiceClient", ServiceClient )
5959
REGISTER_DEPENDENCY( "TestServiceComponent" )

demo/15_pubsvc/pubclient/src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const String _serviceClient = NEUtilities::generateName("ServiceClient"); /
3838
BEGIN_MODEL(_modelName)
3939

4040
// define component thread
41-
BEGIN_REGISTER_THREAD( "TestServiceThread", NECommon::WATCHDOG_IGNORE)
41+
BEGIN_REGISTER_THREAD( "TestServiceThread" )
4242
// define component, set role name. This will trigger default 'create' and 'delete' methods of component
4343
BEGIN_REGISTER_COMPONENT( _serviceClient.getString(), ServiceClient )
4444
// register service dependency

demo/15_pubsvc/pubservice/src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ constexpr char const _serviceName[]{ "HelloService" }; //!< The name of provide
3434
BEGIN_MODEL(_modelName)
3535

3636
// define component thread
37-
BEGIN_REGISTER_THREAD( "TestServiceThread", NECommon::WATCHDOG_IGNORE)
37+
BEGIN_REGISTER_THREAD( "TestServiceThread" )
3838
// define component, set role name. This will trigger default 'create' and 'delete' methods of component
3939
BEGIN_REGISTER_COMPONENT(_serviceName, ServicingComponent )
4040
// register HelloWorld service implementation.

0 commit comments

Comments
 (0)