Refactor around sharings

- exposing additional handles in common code
- adding proxy for CreateEvent (windows)

Change-Id: I90872682c6c518c98d9d43e79f5112ee869e94aa
This commit is contained in:
Chodor, Jaroslaw
2018-03-23 15:55:13 +01:00
committed by sys_ocldev
parent 7f32eb06d1
commit d65128d4e8
18 changed files with 166 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, Intel Corporation
* Copyright (c) 2017 - 2018, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -21,6 +21,7 @@
*/
#include "runtime/os_interface/windows/wddm.h"
#include "runtime/os_interface/windows/sys_calls.h"
#include "os_interface.h"
namespace OCLRT {
@@ -73,4 +74,13 @@ Wddm *OSInterface::OSInterfaceImpl::getWddm() const {
void OSInterface::OSInterfaceImpl::setWddm(Wddm *wddm) {
this->wddm = wddm;
}
HANDLE OSInterface::OSInterfaceImpl::createEvent(LPSECURITY_ATTRIBUTES lpEventAttributes, BOOL bManualReset, BOOL bInitialState,
LPCSTR lpName) {
return SysCalls::createEvent(lpEventAttributes, bManualReset, bInitialState, lpName);
}
BOOL OSInterface::OSInterfaceImpl::closeHandle(HANDLE hObject) {
return SysCalls::closeHandle(hObject);
}
} // namespace OCLRT