Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PythonSiteImpl GetImpl (Type runtimeType)
- {
- lock (s_syncRoot) {
- if (!s_Sites.ContainsKey (runtimeType))
- s_Sites [runtimeType] = new PythonSiteImpl (m_runtime);
- return s_Sites [runtimeType];
- }
- }
- //Go version :D
- //GĂ„r ud fra det er en eller anden type der har den her
- func (d *Klasse) GetImpl(runtimeType Type) PythonSiteImpl {
- s_syncRoot.Lock()
- defer s_syncRoot.Open()
- _, ok := s_Sites[runtimeType]
- if !ok {
- s_Sites[runtimeType] = NewPythonSiteImpl(m_runtime)
- }
- return s_Sites[runtimeType]
- }
Add Comment
Please, Sign In to add comment