Patch by Yavor Doganov to send message id in port messages

This commit is contained in:
Richard Frith-Macdonald 2018-02-07 07:02:40 +00:00
parent 033b921903
commit 3edc201239
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2018-02-07 Yavor Doganov <yavor@gnu.org>
* Source/NSPortMessage.m (sendBeforeDate:): Invoke
-sendBeforeDate:msgid:components:from:reserved: so that the value
of _msgid is taken into account.
(initWithSendPort:receivePort:components:): Set _msgid to 0.
2018-02-06 Richard Frith-Macdonald <rfm@gnu.org> 2018-02-06 Richard Frith-Macdonald <rfm@gnu.org>
* Headers/Foundation/NSException.h: * Headers/Foundation/NSException.h:

View file

@ -71,6 +71,7 @@
self = [super init]; self = [super init];
if (self != nil) if (self != nil)
{ {
_msgid = 0;
_send = RETAIN(aPort); _send = RETAIN(aPort);
_recv = RETAIN(anotherPort); _recv = RETAIN(anotherPort);
_components = [[NSMutableArray allocWithZone: [self zone]] _components = [[NSMutableArray allocWithZone: [self zone]]
@ -97,6 +98,7 @@
- (BOOL) sendBeforeDate: (NSDate*)when - (BOOL) sendBeforeDate: (NSDate*)when
{ {
return [_send sendBeforeDate: when return [_send sendBeforeDate: when
msgid: _msgid
components: _components components: _components
from: _recv from: _recv
reserved: 0]; reserved: 0];