Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000186OCaml~DO NOT USE (was: OCaml general)public2000-09-06 18:102002-08-25 14:08
Assigned To 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000186: Wish: Get rid of ThreadUnix
DescriptionFull_Name: Gerd Stolpmann
Version: 3.00
Submission from: (


I have a feature wish: I would like to get rid of the ThreadUnix module;
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
- 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

Note that the latter is currently not the case:
val Unix.socket : domain:socket_domain -> kind:socket_type -> protocol:int ->
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
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
2017-02-23 16:36 doligez Category OCaml general => -OCaml general
2017-03-03 17:55 doligez Category -OCaml general => -(deprecated) general
2017-03-03 18:01 doligez Category -(deprecated) general => ~deprecated (was: OCaml general)
2017-03-06 17:04 doligez Category ~deprecated (was: OCaml general) => ~DO NOT USE (was: OCaml general)

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker