Changeset c675ab1 in mainline
- Timestamp:
- 2019-08-07T05:42:55Z (5 years ago)
- Children:
- 456f7ae
- Parents:
- b8341bc
- git-author:
- Michal Koutný <xm.koutny+hos@…> (2015-10-20 21:01:42)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-07 05:42:55)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/taskman/task.c
rb8341bc rc675ab1 1 1 /* 2 * copyright (c) 2009 martin decky3 * copyright (c) 2009 jiri svoboda4 * copyright (c) 2015 michal koutny5 * all rights reserved.6 * 7 * redistribution and use in source and binary forms, with or without2 * Copyright (c) 2009 Martin Decky 3 * Copyright (c) 2009 Jiri Svoboda 4 * Copyright (c) 2015 Michal Koutny 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 8 * modification, are permitted provided that the following conditions 9 9 * are met: 10 10 * 11 * - redistributions of source code must retain the above copyright11 * - Redistributions of source code must retain the above copyright 12 12 * notice, this list of conditions and the following disclaimer. 13 * - redistributions in binary form must reproduce the above copyright13 * - Redistributions in binary form must reproduce the above copyright 14 14 * notice, this list of conditions and the following disclaimer in the 15 15 * documentation and/or other materials provided with the distribution. 16 * - the name of the author may not be used to endorse or promote products16 * - The name of the author may not be used to endorse or promote products 17 17 * derived from this software without specific prior written permission. 18 18 * 19 * this software is provided by the author ``as is'' and any express or20 * implied warranties, including, but not limited to, the implied warranties21 * of merchantability and fitness for a particular purpose are disclaimed.22 * in no event shall the author be liable for any direct, indirect,23 * incidental, special, exemplary, or consequential damages (including, but24 * not limited to, procurement of substitute goods or services; loss of use,25 * data, or profits; or business interruption) however caused and on any26 * theory of liability, whether in contract, strict liability, or tort27 * ( including negligence or otherwise) arising in any way out of the use of28 * this software, even if advised of the possibility of such damage.19 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AS IS'' AND ANY EXPRESS OR 20 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 22 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 29 */ 30 30 … … 60 60 } retval_t; 61 61 62 /** task hash table item. */62 /** Task hash table item. */ 63 63 typedef struct { 64 64 ht_link_t link; 65 65 66 task_id_t id; /**< task id. */67 task_exit_t exit; /**< task's uspace exit status. */68 bool failed; /**< task failed. */69 retval_t retval_type; /**< task returned a value. */70 int retval; /**< the return value. */66 task_id_t id; /**< Task id. */ 67 task_exit_t exit; /**< Task's uspace exit status. */ 68 bool failed; /**< Task failed. */ 69 retval_t retval_type; /**< Task returned a value. */ 70 int retval; /**< The return value. */ 71 71 } hashed_task_t; 72 72 … … 89 89 } 90 90 91 /** perform actions after removal of item from the hash table. */91 /** Perform actions after removal of item from the hash table. */ 92 92 static void task_remove(ht_link_t *item) 93 93 { … … 95 95 } 96 96 97 /** operations for task hash table. */97 /** Operations for task hash table. */ 98 98 static hash_table_ops_t task_hash_table_ops = { 99 99 .hash = task_hash,
Note:
See TracChangeset
for help on using the changeset viewer.