Add queue intercept support to the runtime.

Queue intercept is exposed as two tools-only APIs via the API
intercept table.

Change-Id: Iac9602ed3143974d85c3569e9092295ad18037f8
This commit is contained in:
Sean Keely
2017-10-17 22:09:12 -05:00
parent 473be763ff
commit 0c7dde2d1f
16 changed files with 800 additions and 19 deletions
+6
View File
@@ -306,6 +306,10 @@ class Queue : public Checked<0xFA3906A679F9DB49>,
hsa_queue_t* public_handle() const { return public_handle_; }
typedef void* rtti_t;
bool IsType(rtti_t id) { return _IsA(id); }
protected:
static void set_public_handle(Queue* ptr, hsa_queue_t* handle) {
ptr->do_set_public_handle(handle);
@@ -315,6 +319,8 @@ class Queue : public Checked<0xFA3906A679F9DB49>,
}
hsa_queue_t* public_handle_;
virtual bool _IsA(rtti_t id) const = 0;
private:
DISALLOW_COPY_AND_ASSIGN(Queue);
};