mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Minor bugfix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/freeze-1_6_0@16025 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
94e2176828
commit
c273a0f128
2 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2003-02-21 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSDistributedNotificationCenter.m: ([_connect]) make the
|
||||
connection to the server usable from any thread.
|
||||
|
||||
2003-02-19 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Source/NSKeyValueCoding.m ([NSObject -handleQueryWithUnboundKey:]):
|
||||
|
|
|
@ -484,6 +484,10 @@ static NSDistributedNotificationCenter *netCenter = nil;
|
|||
|
||||
@implementation NSDistributedNotificationCenter (Private)
|
||||
|
||||
/**
|
||||
* Establish a connection to the server. This method should only be called
|
||||
* when protected by the centres lock, so that it is thread-safe.
|
||||
*/
|
||||
- (void) _connect
|
||||
{
|
||||
if (_remote == nil)
|
||||
|
@ -574,6 +578,12 @@ static NSDistributedNotificationCenter *netCenter = nil;
|
|||
Protocol *p = @protocol(GDNCProtocol);
|
||||
|
||||
[_remote setProtocolForProxy: p];
|
||||
|
||||
/*
|
||||
* Ensure that this center can be used safely from different
|
||||
* threads.
|
||||
*/
|
||||
[c enableMultipleThreads];
|
||||
|
||||
/*
|
||||
* Ask to be told if the connection goes away.
|
||||
|
|
Loading…
Reference in a new issue