public inbox for [email protected]  
help / color / mirror / Atom feed
From: Prasad Somwanshi <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: pgadmin4: sleep api
Date: Wed, 28 Oct 2015 23:59:08 +0100
Message-ID: <trinity-1d836b42-8424-4053-86f1-f0aea435b288-1446073147884@3capp-mailcom-lxa16> (raw)
List-Unsubscribe:  <mailto:[email protected]?body=unsub%20pgadmin-hackers>


-- 
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers


Attachments:

  [text/x-patch] sleep.patch (629B, 2-sleep.patch)
  download | inline diff:


diff --git a/runtime/pgAdmin4.cpp b/runtime/pgAdmin4.cpp
--- a/runtime/pgAdmin4.cpp
+++ b/runtime/pgAdmin4.cpp
@@ -61,7 +61,7 @@ int main(int argc, char * argv[])
 
     // This is a hack. Wait a second and then check to see if the server thread
     // is still running. If it's not, we probably had a startup error
-    sleep(1);
+    QThread::sleep(1);
 
     // Any errors?
     if (server->isFinished() || server->getError().length() > 0)
@@ -108,7 +108,7 @@ int main(int argc, char * argv[])
             exit(1);
         }
 
-        sleep(1);
+        QThread::sleep(1);
     }
 
     // Create & show the main window


view thread (2+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: pgadmin4: sleep api
  In-Reply-To: <trinity-1d836b42-8424-4053-86f1-f0aea435b288-1446073147884@3capp-mailcom-lxa16>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox