posix_mq RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* [PATCH] pack rw_args struct
@ 2015-01-09 22:10 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2015-01-09 22:10 UTC (permalink / raw)
  To: ruby-posix-mq; +Cc: Eric Wong

This saves one word of stack space, potentially improving
performance a miniscule amount.
---
 ext/posix_mq/posix_mq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ext/posix_mq/posix_mq.c b/ext/posix_mq/posix_mq.c
index 1b56608..14fe819 100644
--- a/ext/posix_mq/posix_mq.c
+++ b/ext/posix_mq/posix_mq.c
@@ -141,13 +141,13 @@ struct open_args {
 /* used to pass arguments to mq_send/mq_receive inside blocking region */
 struct rw_args {
 	mqd_t des;
+	unsigned msg_prio;
 	union {
 		ssize_t received;
 		int retval;
 	};
 	char *msg_ptr;
 	size_t msg_len;
-	unsigned msg_prio;
 	struct timespec *timeout;
 };
 
-- 
2.2.1.203.g624e5c2


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-01-09 22:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-09 22:10 [PATCH] pack rw_args struct Eric Wong

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/ruby_posix_mq.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).