]> rtime.felk.cvut.cz Git - orte.git/commit
JORTE: switch from deserialize function to endianness callback
authorMartin Vajnar <martin.vajnar@gmail.com>
Thu, 25 Jul 2013 12:45:43 +0000 (14:45 +0200)
committerMartin Vajnar <martin.vajnar@gmail.com>
Thu, 25 Jul 2013 12:45:43 +0000 (14:45 +0200)
commitfe36c69fd0d022fafc9acf3a51ca1ba780978f35
tree19a6a7f435cd03ca8c8992080c0098fa9be187f9
parent3ee9dd9cded871b38859b1881c4d98548f5b688e
JORTE: switch from deserialize function to endianness callback

Yesterday's attempt at setting the byte order of ByteBuffer through
a deserialize function has one significant drawback and that is if more
than one data type is defined under one VM instance (thus accessible by
other threads) and subscribers are then registered for these data types
the deserialize function will stop working correctly, because there are
no parameter structures being passed to it, except for the CDR_Codec,
thus it had to use a global reference to a byte buffer which is
unfortunately overwritten the moment a new data type is registered.
If the deserialize function for the previously registered data type
is invoked it then tampers with ByteBuffer settings of a newly registered
data type.
orte/include/jorte/jorte_typedefs_defines.h
orte/libjorte/JORTETypeRegisterAdd.c
orte/libjorte/onLoad.c