MCPcopy Create free account
hub / github.com/ImageEngine/cortex / testThreading

Method testThreading

test/IECoreScene/FontTest.py:66–82  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

64 self.assertTrue( IECore.BoxAlgo.contains( b, bb ) )
65
66 def testThreading( self ) :
67
68 font = IECoreScene.Font( os.path.join( "test", "IECore", "data", "fonts", "Vera.ttf" ) )
69
70 def f() :
71
72 for i in range( 0, 100 ) :
73 font.mesh( str( i ) )
74
75 threads = []
76 for i in range( 0, 100 ) :
77 thread = threading.Thread( target = f )
78 threads.append( thread )
79 thread.start()
80
81 for thread in threads :
82 thread.join()
83
84 def testLineSpacing( self ) :
85

Callers

nothing calls this directly

Calls 4

joinMethod · 0.80
appendMethod · 0.80
FontMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected