layers: Do not track Queue objects
authorCourtney Goeltzenleuchter <courtney@LunarG.com>
Thu, 26 Feb 2015 00:12:26 +0000 (17:12 -0700)
committerCourtney Goeltzenleuchter <courtney@LunarG.com>
Thu, 26 Feb 2015 00:15:47 +0000 (17:15 -0700)
Queue objects are not created by an application and
thus never destroyed. Thus do not need to track.

xgl-layer-generate.py

index c9eca13..c1bac50 100755 (executable)
@@ -595,7 +595,7 @@ class Subcommand(object):
                         using_line += '        pTrav = pTrav->pNext;\n'
                         using_line += '    }\n'
                     # Special cases for API funcs that don't use an object as first arg
-                    elif True in [no_use_proto in proto.name for no_use_proto in ['GlobalOption', 'CreateInstance']]:
+                    elif True in [no_use_proto in proto.name for no_use_proto in ['GlobalOption', 'CreateInstance', 'QueueSubmit', 'QueueSetGlobalMemReferences', 'QueueWaitIdle', 'SignalQueueSemaphore', 'WaitQueueSemaphore', 'WsiX11QueuePresent']]:
                         using_line = ''
                     else:
                         using_line = '    loader_platform_thread_lock_mutex(&objLock);\n'