-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2013-02-25 16:43, Cyrille Henry wrote:
Le 25/02/2013 16:17, IOhannes m zmoelnig a écrit : On 2013-02-25 15:54, Cyrille Henry wrote:
on the other hand, pix_share_read / pix_share_write are dedicated to share pix data. but the id provide is not the shmid.
right, it is a hashed version of the shmid, in order to make it more easily usable within Pd.
i'm curious : what make the hash shmid more usable than the integer Id? i used the int id for shmem because i did not find any good reason not to.
without checking the actual code: the shmid can be any 32bit integer, e.g. 156823457 since Pd uses 32bit single precision floats, the given id might not be representable by a Pd-atom.
the hash i'm using is only 16bit, and thus always representable by a Pd-atom.
ftgmasdr IOhannes