Skip to content

Commit b950e7b

Browse files
committed
Source file headers
darcs-hash:20080524232145-0445d-69633e47c91a750cc59577917ac41ff3bd3d519a
1 parent c9520e1 commit b950e7b

16 files changed

+357
-6
lines changed

lwt.ml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
(* Lightweight thread library for Objective Caml
2+
* http://www.ocsigen.org/lwt
3+
* Module Lwt
4+
* Copyright (C) 2005-2008 Jérôme Vouillon
5+
* Laboratoire PPS - CNRS Université Paris Diderot
6+
*
7+
* This program is free software; you can redistribute it and/or modify
8+
* it under the terms of the GNU Lesser General Public License as
9+
* published by the Free Software Foundation, with linking exception;
10+
* either version 2.1 of the License, or (at your option) any later
11+
* version.
12+
*
13+
* This program is distributed in the hope that it will be useful, but
14+
* WITHOUT ANY WARRANTY; without even the implied warranty of
15+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16+
* Lesser General Public License for more details.
17+
*
18+
* You should have received a copy of the GNU Lesser General Public
19+
* License along with this program; if not, write to the Free Software
20+
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21+
* 02111-1307, USA.
22+
*)
123

224
type 'a clist =
325
CNil

lwt.mli

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
(* Lightweight thread library for Objective Caml
2+
* http://www.ocsigen.org/lwt
3+
* Interface Lwt
4+
* Copyright (C) 2005-2008 Jérôme Vouillon
5+
* Laboratoire PPS - CNRS Université Paris Diderot
6+
*
7+
* This program is free software; you can redistribute it and/or modify
8+
* it under the terms of the GNU Lesser General Public License as
9+
* published by the Free Software Foundation, with linking exception;
10+
* either version 2.1 of the License, or (at your option) any later
11+
* version.
12+
*
13+
* This program is distributed in the hope that it will be useful, but
14+
* WITHOUT ANY WARRANTY; without even the implied warranty of
15+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16+
* Lesser General Public License for more details.
17+
*
18+
* You should have received a copy of the GNU Lesser General Public
19+
* License along with this program; if not, write to the Free Software
20+
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21+
* 02111-1307, USA.
22+
*)
23+
124
(** Module [Lwt]: cooperative light-weight threads. *)
225
(** Execution order
326
A thread executes as much as possible. Switching to another

lwt_chan.ml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
(* Lightweight thread library for Objective Caml
2+
* http://www.ocsigen.org/lwt
3+
* Module Lwt_chan
4+
* Copyright (C) 2005-2008 Jérôme Vouillon
5+
* Laboratoire PPS - CNRS Université Paris Diderot
6+
*
7+
* This program is free software; you can redistribute it and/or modify
8+
* it under the terms of the GNU Lesser General Public License as
9+
* published by the Free Software Foundation, with linking exception;
10+
* either version 2.1 of the License, or (at your option) any later
11+
* version.
12+
*
13+
* This program is distributed in the hope that it will be useful, but
14+
* WITHOUT ANY WARRANTY; without even the implied warranty of
15+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16+
* Lesser General Public License for more details.
17+
*
18+
* You should have received a copy of the GNU Lesser General Public
19+
* License along with this program; if not, write to the Free Software
20+
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21+
* 02111-1307, USA.
22+
*)
123

224
let buffer_size = 4096
325

lwt_chan.mli

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
(* Lightweight thread library for Objective Caml
2+
* http://www.ocsigen.org/lwt
3+
* Interface Lwt_chan
4+
* Copyright (C) 2005-2008 Jérôme Vouillon
5+
* Laboratoire PPS - CNRS Université Paris Diderot
6+
*
7+
* This program is free software; you can redistribute it and/or modify
8+
* it under the terms of the GNU Lesser General Public License as
9+
* published by the Free Software Foundation, with linking exception;
10+
* either version 2.1 of the License, or (at your option) any later
11+
* version.
12+
*
13+
* This program is distributed in the hope that it will be useful, but
14+
* WITHOUT ANY WARRANTY; without even the implied warranty of
15+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16+
* Lesser General Public License for more details.
17+
*
18+
* You should have received a copy of the GNU Lesser General Public
19+
* License along with this program; if not, write to the Free Software
20+
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21+
* 02111-1307, USA.
22+
*)
23+
124
(** Module [Lwt_chan]: cooperative, [Pervasives]-like, I/O functions *)
225

326

lwt_mutex.ml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
(* Lightweight thread library for Objective Caml
2+
* http://www.ocsigen.org/lwt
3+
* Module Lwt_mutex
4+
* Copyright (C) 2005-2008 Jérôme Vouillon
5+
* Laboratoire PPS - CNRS Université Paris Diderot
6+
*
7+
* This program is free software; you can redistribute it and/or modify
8+
* it under the terms of the GNU Lesser General Public License as
9+
* published by the Free Software Foundation, with linking exception;
10+
* either version 2.1 of the License, or (at your option) any later
11+
* version.
12+
*
13+
* This program is distributed in the hope that it will be useful, but
14+
* WITHOUT ANY WARRANTY; without even the implied warranty of
15+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16+
* Lesser General Public License for more details.
17+
*
18+
* You should have received a copy of the GNU Lesser General Public
19+
* License along with this program; if not, write to the Free Software
20+
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21+
* 02111-1307, USA.
22+
*)
23+
124
type t = { mutable locked : bool; mutable waiting : unit Lwt.t list }
225

326
let create () = { locked = false; waiting = [] }

lwt_mutex.mli

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
(* Lightweight thread library for Objective Caml
2+
* http://www.ocsigen.org/lwt
3+
* Interface Lwt_mutex
4+
* Copyright (C) 2005-2008 Jérôme Vouillon
5+
* Laboratoire PPS - CNRS Université Paris Diderot
6+
*
7+
* This program is free software; you can redistribute it and/or modify
8+
* it under the terms of the GNU Lesser General Public License as
9+
* published by the Free Software Foundation, with linking exception;
10+
* either version 2.1 of the License, or (at your option) any later
11+
* version.
12+
*
13+
* This program is distributed in the hope that it will be useful, but
14+
* WITHOUT ANY WARRANTY; without even the implied warranty of
15+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16+
* Lesser General Public License for more details.
17+
*
18+
* You should have received a copy of the GNU Lesser General Public
19+
* License along with this program; if not, write to the Free Software
20+
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21+
* 02111-1307, USA.
22+
*)
123

224
type t
325

lwt_ssl.ml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
(* Lightweight thread library for Objective Caml
2+
* http://www.ocsigen.org/lwt
3+
* Module Lwt_ssl
4+
* Copyright (C) 2005-2008 Jérôme Vouillon
5+
* Laboratoire PPS - CNRS Université Paris Diderot
6+
*
7+
* This program is free software; you can redistribute it and/or modify
8+
* it under the terms of the GNU Lesser General Public License as
9+
* published by the Free Software Foundation, with linking exception;
10+
* either version 2.1 of the License, or (at your option) any later
11+
* version.
12+
*
13+
* This program is distributed in the hope that it will be useful, but
14+
* WITHOUT ANY WARRANTY; without even the implied warranty of
15+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16+
* Lesser General Public License for more details.
17+
*
18+
* You should have received a copy of the GNU Lesser General Public
19+
* License along with this program; if not, write to the Free Software
20+
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21+
* 02111-1307, USA.
22+
*)
123

224
type t =
325
Plain

lwt_ssl.mli

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
(* Lightweight thread library for Objective Caml
2+
* http://www.ocsigen.org/lwt
3+
* Interface Lwt_ssl
4+
* Copyright (C) 2005-2008 Jérôme Vouillon
5+
* Laboratoire PPS - CNRS Université Paris Diderot
6+
*
7+
* This program is free software; you can redistribute it and/or modify
8+
* it under the terms of the GNU Lesser General Public License as
9+
* published by the Free Software Foundation, with linking exception;
10+
* either version 2.1 of the License, or (at your option) any later
11+
* version.
12+
*
13+
* This program is distributed in the hope that it will be useful, but
14+
* WITHOUT ANY WARRANTY; without even the implied warranty of
15+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16+
* Lesser General Public License for more details.
17+
*
18+
* You should have received a copy of the GNU Lesser General Public
19+
* License along with this program; if not, write to the Free Software
20+
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21+
* 02111-1307, USA.
22+
*)
123

224
type socket
325

lwt_timeout.ml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
(* Lightweight thread library for Objective Caml
2+
* http://www.ocsigen.org/lwt
3+
* Module Lwt_timeout
4+
* Copyright (C) 2005-2008 Jérôme Vouillon
5+
* Laboratoire PPS - CNRS Université Paris Diderot
6+
*
7+
* This program is free software; you can redistribute it and/or modify
8+
* it under the terms of the GNU Lesser General Public License as
9+
* published by the Free Software Foundation, with linking exception;
10+
* either version 2.1 of the License, or (at your option) any later
11+
* version.
12+
*
13+
* This program is distributed in the hope that it will be useful, but
14+
* WITHOUT ANY WARRANTY; without even the implied warranty of
15+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16+
* Lesser General Public License for more details.
17+
*
18+
* You should have received a copy of the GNU Lesser General Public
19+
* License along with this program; if not, write to the Free Software
20+
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21+
* 02111-1307, USA.
22+
*)
123

224
type t =
325
{ mutable delay : int; action : unit -> unit;

lwt_timeout.mli

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
(* Lightweight thread library for Objective Caml
2+
* http://www.ocsigen.org/lwt
3+
* Interface Lwt_timeout
4+
* Copyright (C) 2005-2008 Jérôme Vouillon
5+
* Laboratoire PPS - CNRS Université Paris Diderot
6+
*
7+
* This program is free software; you can redistribute it and/or modify
8+
* it under the terms of the GNU Lesser General Public License as
9+
* published by the Free Software Foundation, with linking exception;
10+
* either version 2.1 of the License, or (at your option) any later
11+
* version.
12+
*
13+
* This program is distributed in the hope that it will be useful, but
14+
* WITHOUT ANY WARRANTY; without even the implied warranty of
15+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16+
* Lesser General Public License for more details.
17+
*
18+
* You should have received a copy of the GNU Lesser General Public
19+
* License along with this program; if not, write to the Free Software
20+
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21+
* 02111-1307, USA.
22+
*)
123

224
type t
325

0 commit comments

Comments
 (0)