git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed sgcp, added json.
[stg.git]
/
projects
/
stargazer
/
plugins
/
other
/
ping
/
ping.cpp
diff --git
a/projects/stargazer/plugins/other/ping/ping.cpp
b/projects/stargazer/plugins/other/ping/ping.cpp
index 7c4050abb035d9f55108ed306b02d5b51e869a3d..c65a5cbaff805ea9f96f36057e9f277ed63cca5b 100644
(file)
--- a/
projects/stargazer/plugins/other/ping/ping.cpp
+++ b/
projects/stargazer/plugins/other/ping/ping.cpp
@@
-124,7
+124,7
@@
return 0;
//-----------------------------------------------------------------------------
int PING::Stop()
{
//-----------------------------------------------------------------------------
int PING::Stop()
{
-STG_LOCKER lock(&mutex
, __FILE__, __LINE__
);
+STG_LOCKER lock(&mutex);
if (!isRunning)
return 0;
if (!isRunning)
return 0;
@@
-178,7
+178,7
@@
while (ping->nonstop)
{
std::list<USER_PTR>::iterator iter = ping->usersList.begin();
{
{
std::list<USER_PTR>::iterator iter = ping->usersList.begin();
{
- STG_LOCKER lock(&ping->mutex
, __FILE__, __LINE__
);
+ STG_LOCKER lock(&ping->mutex);
while (iter != ping->usersList.end())
{
if ((*iter)->GetProperty().ips.ConstData().OnlyOneIP())
while (iter != ping->usersList.end())
{
if ((*iter)->GetProperty().ips.ConstData().OnlyOneIP())
@@
-268,7
+268,7
@@
if (IPIter != ChgIPNotifierList.end())
//-----------------------------------------------------------------------------
void PING::GetUsers()
{
//-----------------------------------------------------------------------------
void PING::GetUsers()
{
-STG_LOCKER lock(&mutex
, __FILE__, __LINE__
);
+STG_LOCKER lock(&mutex);
USER_PTR u;
int h = users->OpenSearch();
USER_PTR u;
int h = users->OpenSearch();
@@
-297,7
+297,7
@@
users->CloseSearch(h);
//-----------------------------------------------------------------------------
void PING::AddUser(USER_PTR u)
{
//-----------------------------------------------------------------------------
void PING::AddUser(USER_PTR u)
{
-STG_LOCKER lock(&mutex
, __FILE__, __LINE__
);
+STG_LOCKER lock(&mutex);
SetUserNotifiers(u);
usersList.push_back(u);
SetUserNotifiers(u);
usersList.push_back(u);
@@
-305,7
+305,7
@@
usersList.push_back(u);
//-----------------------------------------------------------------------------
void PING::DelUser(USER_PTR u)
{
//-----------------------------------------------------------------------------
void PING::DelUser(USER_PTR u)
{
-STG_LOCKER lock(&mutex
, __FILE__, __LINE__
);
+STG_LOCKER lock(&mutex);
UnSetUserNotifiers(u);
UnSetUserNotifiers(u);