Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000186OCamlOCaml generalpublic2000-09-06 18:102002-08-25 14:08
Reporteradministrator 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000186: Wish: Get rid of ThreadUnix
DescriptionFull_Name: Gerd Stolpmann
Version: 3.00
OS:
Submission from: p3e9e0ea8.dip0.t-ipconnect.de (62.158.14.168)


Hello,

I have a feature wish: I would like to get rid of the ThreadUnix module;
instead,
the -thread option should automatically select a thread-aware version of Unix.

The advantages:
- When programming, you need not look up whether a Unix function is also defined
in
  ThreadUnix.
- It is simpler to write packages (collections of related modules) that
  work for both single- and multi-threaded applications. Often, one can avoid
  global states, and the only problem to make such packages thread-aware are
  calls of Unix functions. Currently, it is very complicated to provide two
  versions of such packages, one for single- and one for multi-threaded
  applications (the versions differ only in _some_ invocations of Unix).
- It is simpler for you to keep the interfaces of both Unix versions
  synchronized.

Note that the latter is currently not the case:
val Unix.socket : domain:socket_domain -> kind:socket_type -> protocol:int ->
file_descr
val ThreadUnix.socket : domain:Unix.socket_domain -> kind:Unix.socket_type ->
proto:int -> file_descr
The labels are different.

All the best,
Gerd Stolpmann

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0003130)
administrator (administrator)
2001-06-25 10:05

Done 2001-06-25 by XL.

- Issue History
Date Modified Username Field Change
2005-11-18 10:14 administrator New Issue


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker