/[LeafOK_CVS]/lbbs/src/test_section_list.c
ViewVC logotype

Diff of /lbbs/src/test_section_list.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.43 by sysadm, Tue Nov 18 15:15:18 2025 UTC Revision 1.44 by sysadm, Thu Nov 20 10:22:23 2025 UTC
# Line 947  int main(int argc, char *argv[]) Line 947  int main(int argc, char *argv[])
947                  }                  }
948          }          }
949    
 #ifndef __CYGWIN__  
950          printf("Try rw_lock for 5 sec...\n");          printf("Try rw_lock for 5 sec...\n");
951          if (section_list_try_rw_lock(NULL, 5) == 0)          if (section_list_try_rw_lock(NULL, 5) == 0)
952          {          {
953                  printf("section_list_try_rw_lock(sid = %d) error, expectation is timeout\n", p_section[i]->sid);                  printf("section_list_try_rw_lock(sid = %d) error, expectation is timeout\n", p_section[i]->sid);
954          }          }
 #endif  
955    
956          for (i = 0; i < section_count; i++)          for (i = 0; i < section_count; i++)
957          {          {
# Line 969  int main(int argc, char *argv[]) Line 967  int main(int argc, char *argv[])
967                  printf("section_list_rd_lock(sid = %d) error\n", p_section[i]->sid);                  printf("section_list_rd_lock(sid = %d) error\n", p_section[i]->sid);
968          }          }
969    
 #ifndef __CYGWIN__  
970          for (i = 0; i < section_count; i++)          for (i = 0; i < section_count; i++)
971          {          {
972                  if (section_list_try_rd_lock(p_section[i], 0) == 0)                  if (section_list_try_rd_lock(p_section[i], 0) == 0)
# Line 978  int main(int argc, char *argv[]) Line 975  int main(int argc, char *argv[])
975                          break;                          break;
976                  }                  }
977          }          }
 #endif  
978    
979          if (section_list_rw_unlock(NULL) < 0)          if (section_list_rw_unlock(NULL) < 0)
980          {          {


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1