mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
Refactor around sharings
- exposing additional handles in common code - adding proxy for CreateEvent (windows) Change-Id: I90872682c6c518c98d9d43e79f5112ee869e94aa
This commit is contained in:
committed by
sys_ocldev
parent
7f32eb06d1
commit
d65128d4e8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user