Merge branch 'gfx-work' into udpnetwork

This commit is contained in:
milek7
2019-01-27 22:19:52 +01:00
13 changed files with 181 additions and 134 deletions

View File

@@ -282,7 +282,13 @@ eu07_application::run() {
bool
eu07_application::request( python_taskqueue::task_request const &Task ) {
return m_taskqueue.insert( Task );
auto const result { m_taskqueue.insert( Task ) };
if( ( false == result )
&& ( Task.input != nullptr ) ) {
// clean up allocated resources since the worker won't
delete Task.input;
}
return result;
}
// ensures the main thread holds the python gil and can safely execute python calls