1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
namespace mozilla { namespace _ipdltest { protocol PTestShmem { child: async Give(Shmem mem, Shmem unsafe, size_t expectedSize); parent: async Take(Shmem mem, Shmem unsafe, size_t expectedSize); async __delete__(); state GIVING: send Give goto TAKING; state TAKING: recv Take goto TAKING; recv __delete__; }; } }