~ubuntu-branches/ubuntu/karmic/gnustep-base/karmic

« back to all changes in this revision

Viewing changes to Source/NSDistributedNotificationCenter.m

  • Committer: Bazaar Package Importer
  • Author(s): Luca Falavigna
  • Date: 2008-07-05 09:49:51 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080705094951-gs19i3erqo2xx6if
Tags: 1.16.1-2ubuntu1
* Merge from Debian unstable, remaining Ubuntu changes:
  + debian/rules:
    - Add lpia to ALL_ARCHS supported architectures.
  + debian/control:
    - Add lpia architecture where needed.
  + debian/control{,.m4}:
    - Update Maintainer field as per spec.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
   This library is free software; you can redistribute it and/or
10
10
   modify it under the terms of the GNU Lesser General Public
11
11
   License as published by the Free Software Foundation; either
12
 
   version 3 of the License, or (at your option) any later version.
 
12
   version 2 of the License, or (at your option) any later version.
13
13
 
14
14
   This library is distributed in the hope that it will be useful,
15
15
   but WITHOUT ANY WARRANTY; without even the implied warranty of
22
22
   Boston, MA 02111 USA.
23
23
 
24
24
   <title>NSDistributedNotificationCenter class reference</title>
25
 
   $Date: 2007-09-14 05:39:44 -0600 (Fri, 14 Sep 2007) $ $Revision: 25483 $
 
25
   $Date: 2008-06-12 11:44:00 +0100 (Thu, 12 Jun 2008) $ $Revision: 26630 $
26
26
   */
27
27
 
28
28
#include        "config.h"
42
42
#include        "Foundation/NSHost.h"
43
43
#include        "Foundation/NSPortNameServer.h"
44
44
#include        "Foundation/NSDebug.h"
45
 
 
 
45
#include        "Foundation/NSThread.h"
46
46
#include        "../Tools/gdnc.h"
47
47
 
48
48
 
739
739
          limit = [NSDate dateWithTimeIntervalSinceNow: 5.0];
740
740
          while (_remote == nil && [limit timeIntervalSinceNow] > 0)
741
741
            {
 
742
              CREATE_AUTORELEASE_POOL(pool);
 
743
              [NSThread sleepForTimeInterval: 0.05];
742
744
              _remote = [NSConnection
743
745
                rootProxyForConnectionWithRegisteredName: service
744
746
                host: host usingNameServer: ns];
 
747
              RETAIN(_remote);
 
748
              DESTROY(pool);
745
749
            }
746
750
          if (_remote == nil)
747
751
            {
751
755
                @"I attempted to start it at '%@'\n", cmd];
752
756
            }
753
757
        }
 
758
      else
 
759
        {
 
760
          RETAIN(_remote);
 
761
        }
754
762
 
755
 
      RETAIN(_remote);
756
763
      c = [_remote connectionForProxy];
757
764
      [_remote setProtocolForProxy: p];
758
765