()
| 62 | } |
| 63 | |
| 64 | func GetGlobalRenderContext() *RenderContextImpl { |
| 65 | globalCtxMutex.Lock() |
| 66 | defer globalCtxMutex.Unlock() |
| 67 | gid := goid.Get() |
| 68 | if gid != globalRenderGoId { |
| 69 | return nil |
| 70 | } |
| 71 | return globalRenderContext |
| 72 | } |
| 73 | |
| 74 | func setGlobalEventContext(ec *EventContextImpl) { |
| 75 | globalCtxMutex.Lock() |
no test coverage detected