You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Yes, that looks fine to me. It's safe because jsiQueueEvents will add references to all the stuff it cares about, so even when unlocked it won't get freed.

    In that case I'd consider using jsvUnLock3 though - it's stupid, but I changed all the multiple unlocks to calls to jsvUnLock2 and jsvUnLock3, and saved about 10kB of flash IIRC :)

    Also there's jsvUnLockMany that you can use on arrays of JsVars

About

Avatar for Gordon @Gordon started