@@ -11,7 +11,7 @@ bool g_apiInitialized = false;
11
11
volatile bool g_run = false ;
12
12
13
13
// this event is used to nice end notifications thread
14
- swss::SelectableEvent g_redisNotificationTrheadEvent ;
14
+ swss::SelectableEvent g_redisNotificationThreadEvent ;
15
15
std::shared_ptr<std::thread> notification_thread;
16
16
17
17
std::shared_ptr<swss::DBConnector> g_db;
@@ -61,15 +61,15 @@ void ntf_thread()
61
61
swss::Select s;
62
62
63
63
s.addSelectable (g_redisNotifications.get ());
64
- s.addSelectable (&g_redisNotificationTrheadEvent );
64
+ s.addSelectable (&g_redisNotificationThreadEvent );
65
65
66
66
while (g_run)
67
67
{
68
68
swss::Selectable *sel;
69
69
70
70
int result = s.select (&sel);
71
71
72
- if (sel == &g_redisNotificationTrheadEvent )
72
+ if (sel == &g_redisNotificationThreadEvent )
73
73
{
74
74
// user requested shutdown_switch
75
75
break ;
@@ -136,7 +136,7 @@ sai_status_t sai_api_initialize(
136
136
137
137
SWSS_LOG_DEBUG (" creating notification thread" );
138
138
139
- notification_thread = std::make_shared<std::thread>(std::thread ( ntf_thread) );
139
+ notification_thread = std::make_shared<std::thread>(ntf_thread);
140
140
141
141
g_apiInitialized = true ;
142
142
@@ -161,7 +161,7 @@ sai_status_t sai_api_uninitialize(void)
161
161
g_run = false ;
162
162
163
163
// notify thread that it should end
164
- g_redisNotificationTrheadEvent .notify ();
164
+ g_redisNotificationThreadEvent .notify ();
165
165
166
166
notification_thread->join ();
167
167
0 commit comments