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

Method f

test/IECore/MessageHandler.py:196–201  ·  view source on GitHub ↗
( handler )

Source from the content-addressed store, hash-verified

194 def testThreading( self ) :
195
196 def f( handler ) :
197
198 with handler :
199 for i in range( 0, 100 ) :
200 IECore.msg( IECore.Msg.Level.Info, "test", str( i ) )
201 time.sleep( 0.0001 ) # encourage python to switch threads
202
203 handlers = []
204 threads = []

Callers

nothing calls this directly

Calls 2

msgMethod · 0.80
strFunction · 0.50

Tested by

no test coverage detected