Experimental Physics and Industrial Control System
From: Shen, Guobao [mailto:[email protected]]
> I am using exact the version 2.3 which is from that link.
> Did not try your git repo version yet.
Ah.
I *thought* that cothread was working properly under OSX, it was the last time I tried ... which may have been too long ago.
That's a shame, I've just made a 2.4 release, which won't address your problem.
Can you take a closer look and tell me what's happening? I'm puzzled that you're reporting that cothread is using poll(), because I have the following lines in coselect.py:
import platform as _platform
if hasattr(_select, 'poll'):
if _platform.system() == 'Darwin':
# Unfortunately it would appear that Apple's implementation of the
# poll() system call is incomplete: it returns POLLNVAL for devices!
# Apparently kqueue and poll fail on anything in /dev (I suppose they
# work on ordinary files and sockets?)
# So if this is your platform, sorry, we have to use select.
poll_block = poll_block_select
else:
# This is the preferred case.
poll_block = poll_block_poll
The poll_block_select() function does its best to emulate poll() using select(), and it worked last time I looked, at least I thought so. Can you check that, for example, that this code is actually working (maybe _platform.system() has changed, for example?)
--
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
- Replies:
- Re: cothread problem on Mac osx Shen, Guobao
- References:
- cothread problem on Mac osx Shen, Guobao
- RE: cothread problem on Mac osx michael.abbott
- RE: cothread problem on Mac osx Shen, Guobao
- Navigate by Date:
- Prev:
RE: cothread problem on Mac osx Shen, Guobao
- Next:
Re: VME SCALER, I2C bus Tim Mooney
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
<2012>
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
RE: cothread problem on Mac osx Shen, Guobao
- Next:
Re: cothread problem on Mac osx Shen, Guobao
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
<2012>
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024