GetRTInfo returns the ObjRTInfo for the given ORef, or nil if not found
(oref waveobj.ORef)
| 126 | |
| 127 | // GetRTInfo returns the ObjRTInfo for the given ORef, or nil if not found |
| 128 | func GetRTInfo(oref waveobj.ORef) *waveobj.ObjRTInfo { |
| 129 | rtInfoMutex.RLock() |
| 130 | defer rtInfoMutex.RUnlock() |
| 131 | |
| 132 | if rtInfo, exists := rtInfoStore[oref]; exists { |
| 133 | // Return a copy to avoid external modification |
| 134 | copy := *rtInfo |
| 135 | return © |
| 136 | } |
| 137 | return nil |
| 138 | } |
| 139 | |
| 140 | // DeleteRTInfo removes the ObjRTInfo for the given ORef |
| 141 | func DeleteRTInfo(oref waveobj.ORef) { |
no outgoing calls
no test coverage detected