Commit Graph

52 Commits

Author SHA1 Message Date
Mrozek, Michal a95cca71e4 Device now adds dependencies on ExecutionEnvironment
- This allows for ExecutionEnvironment to live longer then platform after
its global destruction
- Device adds references to ExecutionEnvironment after creation
- When device is destroyed it removes the dependency causing the cleanup
- Platform upon destruction no longer destroys the device, but decrements
the internal ref count.

Change-Id: I22593ea44b2b50e3416575a9e97e3ce0a1f8b5c0
2018-06-27 16:37:29 +02:00
Mrozek, Michal a0e9b96e52 Add execution environment.
- this class will encapsulate common shared state
- platform will create it
- clients will increment ref count
- platform upon destruction will decrement ref counts
- it means that execution environment will be capable of living longer then
platform in case there will be dependencies.

Change-Id: I0ea7f85ea57448c0e641673f1d15851e50b2b8b2
2018-06-22 13:15:10 +02:00