Subversion Repositories Kolibri OS

Rev

Rev 4921 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4921 Rev 6099
Line 44... Line 44...
44
   * Avoid locking this list while walking it or else you will
44
   * Avoid locking this list while walking it or else you will
45
   * introduce a potential deadlock in [at least] refill.c.
45
   * introduce a potential deadlock in [at least] refill.c.
46
   */
46
   */
47
  for (g = &ptr->__sglue; g != NULL; g = g->_next)
47
  for (g = &ptr->__sglue; g != NULL; g = g->_next)
48
    for (fp = g->_iobs, n = g->_niobs; --n >= 0; fp++)
48
    for (fp = g->_iobs, n = g->_niobs; --n >= 0; fp++)
49
          if (fp->_flags != 0 && fp->_flags != 1 && fp->_file != -1)
49
      if (fp->_flags != 0 && fp->_flags != 1 && fp->_file != -1)
50
            ret |= (*function) (fp);
50
	ret |= (*function) (fp);
Line 51... Line 51...
51
 
51
 
52
  return ret;
52
  return ret;
Line 53... Line 53...
53
}
53
}
Line 71... Line 71...
71
   * Avoid locking this list while walking it or else you will
71
   * Avoid locking this list while walking it or else you will
72
   * introduce a potential deadlock in [at least] refill.c.
72
   * introduce a potential deadlock in [at least] refill.c.
73
   */
73
   */
74
  for (g = &ptr->__sglue; g != NULL; g = g->_next)
74
  for (g = &ptr->__sglue; g != NULL; g = g->_next)
75
    for (fp = g->_iobs, n = g->_niobs; --n >= 0; fp++)
75
    for (fp = g->_iobs, n = g->_niobs; --n >= 0; fp++)
76
      if (fp->_flags != 0)
-
 
77
        {
-
 
78
          if (fp->_flags != 0 && fp->_flags != 1 && fp->_file != -1)
76
      if (fp->_flags != 0 && fp->_flags != 1 && fp->_file != -1)
79
            ret |= (*reent_function) (ptr, fp);
77
	ret |= (*reent_function) (ptr, fp);
80
        }
-
 
Line 81... Line 78...
81
 
78
 
82
  return ret;
79
  return ret;