about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-01-09 22:10:24 +0000
committerEric Wong <e@80x24.org>2015-01-09 23:09:21 +0000
commit12314a85d2dc3362a945374e2cae89fa2c7e23da (patch)
treeba136fe6b0b0044fd1c3093a355d5e816f790a9f
parentee64574aac7ad08256e2237dd5973d6ebc22a7d6 (diff)
downloadruby_posix_mq-12314a85d2dc3362a945374e2cae89fa2c7e23da.tar.gz
This saves one word of stack space, potentially improving
performance a miniscule amount.
-rw-r--r--ext/posix_mq/posix_mq.c2
1 files changed, 1 insertions, 1 deletions
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;
 };