summaryrefslogtreecommitdiffstats
path: root/ipc/ipdl/test/cxx/PTestRaceDeferral.ipdl
blob: f165fa1cea3802c060b372c23e8fd17733edf38b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
include "mozilla/_ipdltest/TestRaceDeferral.h";

namespace mozilla {
namespace _ipdltest {

[ManualDealloc, ChildImpl="TestRaceDeferralChild", ParentImpl="TestRaceDeferralParent"]
intr protocol PTestRaceDeferral {
parent:
    [LegacyIntr] intr Lose();

child:
    async StartRace();
    [LegacyIntr] intr Win();
    [LegacyIntr] intr Rpc();
    async __delete__();

// Test that messages deferred due to race resolution are
// re-considered when the winner makes later RPCs
};

} // namespace _ipdltest
} // namespace mozilla