mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 12:16:40 +00:00
Use new RunLoop mechanism.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1228 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
cceb033955
commit
a69d1025ed
1 changed files with 4 additions and 1 deletions
|
@ -5,6 +5,8 @@
|
||||||
#include <objects/Coder.h>
|
#include <objects/Coder.h>
|
||||||
#include <objects/BinaryCStream.h>
|
#include <objects/BinaryCStream.h>
|
||||||
#include <objects/String.h>
|
#include <objects/String.h>
|
||||||
|
#include <objects/RunLoop.h>
|
||||||
|
#include <Foundation/NSDate.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include "server.h"
|
#include "server.h"
|
||||||
|
|
||||||
|
@ -130,7 +132,8 @@ int main(int argc, char *argv[])
|
||||||
printf("repeated triangle %d object proxy's hash is 0x%x\n",
|
printf("repeated triangle %d object proxy's hash is 0x%x\n",
|
||||||
j, (unsigned)[remote_peer_obj hash]);
|
j, (unsigned)[remote_peer_obj hash]);
|
||||||
}
|
}
|
||||||
[c runConnectionWithTimeout:1500];
|
|
||||||
|
[RunLoop runUntilDate: [NSDate dateWithTimeIntervalSinceNow: 20 * 60]];
|
||||||
[c invalidate];
|
[c invalidate];
|
||||||
|
|
||||||
exit(0);
|
exit(0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue