Thread id is None on OSX #20

Open
kyledj opened this Issue Mar 12, 2012 · 2 comments

Projects

None yet

2 participants

@kyledj
kyledj commented Mar 12, 2012

mmstats.libgettid.gettid returns None of OSX, which causes the default mmstats.MmStats to fail

@kyledj
kyledj commented Mar 12, 2012

File "/Users/kyle/projects/flask_mmstats/mmstats/mmstats/models.py", line 51, in init
self._init_fields(total_size)
File "/Users/kyle/projects/flask_mmstats/mmstats/mmstats/models.py", line 66, in _init_fields
self._offset = state.field._init(state, self._mm_ptr, self._offset)
File "/Users/kyle/projects/flask_mmstats/mmstats/mmstats/fields.py", line 137, in _init
state._struct.value = self.value
TypeError: an integer is required

@schmichael
Owner

This should have been fixed in 7232353

Mind pulling master and testing on OSX? If it works I'd like to cut a 0.7 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment