File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ All notable changes to this RDK Service will be documented in this file.
16
16
17
17
* For more details, refer to [ versioning] ( https://github.com/rdkcentral/rdkservices#versioning ) section under Main README.
18
18
19
+ ## [ 1.6.4] - 2024-12-16
20
+ ### Added
21
+ - Added proper synchronization in in RDKShell::subscribeForSystemEvent()
19
22
20
23
## [ 1.6.3] - 2024-09-09
21
24
### Added
Original file line number Diff line number Diff line change 53
53
54
54
#define API_VERSION_NUMBER_MAJOR 1
55
55
#define API_VERSION_NUMBER_MINOR 6
56
- #define API_VERSION_NUMBER_PATCH 3
56
+ #define API_VERSION_NUMBER_PATCH 4
57
57
58
58
const string WPEFramework::Plugin::RDKShell::SERVICE_NAME = " org.rdk.RDKShell" ;
59
59
// methods
@@ -947,9 +947,7 @@ namespace WPEFramework {
947
947
}
948
948
else if (requestName.compare (" susbscribeSystemEvent" ) == 0 )
949
949
{
950
- gSubscribeMutex .lock ();
951
950
subscribeForSystemEvent (" onSystemPowerStateChanged" );
952
- gSubscribeMutex .unlock ();
953
951
std::cout << " subscribed system event " << std::endl;
954
952
JsonObject joGetParams;
955
953
JsonObject joGetResult;
@@ -8165,6 +8163,7 @@ namespace WPEFramework {
8165
8163
8166
8164
int32_t RDKShell::subscribeForSystemEvent (std::string event)
8167
8165
{
8166
+ gSubscribeMutex .lock ();
8168
8167
int32_t status = Core::ERROR_GENERAL;
8169
8168
8170
8169
PluginHost::IShell::state state;
@@ -8204,7 +8203,7 @@ namespace WPEFramework {
8204
8203
}
8205
8204
else
8206
8205
std::cout << " No Connection to SystemServices" << std::endl;
8207
-
8206
+ gSubscribeMutex . unlock ();
8208
8207
return status;
8209
8208
}
8210
8209
You can’t perform that action at this time.
0 commit comments