From d5b1ca14e2badc5d13ac7e6c5b3d98b6e0112578 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 2 Jan 2017 13:54:07 -0600 Subject: [PATCH] Update README and some comments. --- README.txt | 32 ++++++++++++++++++++++++++------ sched/pthread/pthread_cancel.c | 4 +--- sched/task/task_delete.c | 2 -- 3 files changed, 27 insertions(+), 11 deletions(-) diff --git a/README.txt b/README.txt index b730b4eae7..80957b3b2b 100644 --- a/README.txt +++ b/README.txt @@ -39,21 +39,27 @@ README ENVIRONMENTS ^^^^^^^^^^^^ - NuttX requires a POSIX development environment such as you would find uder + NuttX requires a POSIX development environment such as you would find under Linux or OSX. NuttX may be also be installed and built on Windows system - if you also provde such a POSIX develoment environment. Options for a + if you also provde such a POSIX development environment. Options for a POSIX development environment under Windows include: - - An installation Linux on a virtual machine in Windows. + - An installation of Linux on a virtual machine (VM) in Windows. I have + not been happy using a VM myself. I have had stability problems with + open source VMs and commercial VMs cost more than I want to spend. + Sharing files with Linux running in a VM is awkward; sharing devices + connected to the Windows box with Linux in a VM is, at the very least, + confusing; Using Windows tools (such as Segger J-Link) with files + built under the Linux VM is not a possibility. - The Cygwin environment. Instructions for installation of Cygwin on a Windows system are provided in the following paragraph, "Installing Cygwin". Cygwin is a mature, well-tested, and very convenient environment. It is especially expecially convenient if you need to - integrate with Windows tools. Downsides are that the installation - time is very long and the compile times are very slow. + integrate with Windows tools and files. Downsides are that the + installation time is very long and the compile times are slow. - - Ubuntu/bash shell under Windows 10. This is a new option under + - Ubuntu/Bash shell under Windows 10. This is a new option under Windows 10. See the section "Ubuntu Bash under Windows 10" below. This is an improvement over Cygwin if your concern is compile time; its build performance is comparable to native Linux, certainly better @@ -230,6 +236,20 @@ Ubuntu Bash under Windows 10 however, no corresponding tool to convert '/mnt/c/Program Files' in the Ubuntu environment. + Graphics Support + ---------------- + The Ubuntu version support by Microsoft is a command-line only version. + There is no support for Linux graphics utilities. + + This limititation is not a limitation of Ubuntu, however, only in what + Microsoft is willing to support. If you install a X-Server, then you + can also use basic graphics utilities. See for example: + + http://www.howtogeek.com/261575/how-to-run-graphical-linux-desktop-applications-from-windows-10s-bash-shell/ + + Many Linux graphics programs would, however, also require a graphics + framework like GTK or Qt. So this might be a trip down the rabbit hole. + INSTALLATION ^^^^^^^^^^^^ diff --git a/sched/pthread/pthread_cancel.c b/sched/pthread/pthread_cancel.c index 6b974629a0..a9b7e8270b 100644 --- a/sched/pthread/pthread_cancel.c +++ b/sched/pthread/pthread_cancel.c @@ -1,7 +1,7 @@ /**************************************************************************** * sched/pthread/pthread_cancel.c * - * Copyright (C) 2007, 2009, 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009, 2013, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -120,8 +120,6 @@ int pthread_cancel(pthread_t thread) /* If the thread is waiting at a cancellation point, then notify of the * cancellation thereby waking the task up with an ECANCELED error. - * - * REVISIT: is locking the scheduler sufficent in SMP mode? */ if (tcb->cmn.cpcount > 0) diff --git a/sched/task/task_delete.c b/sched/task/task_delete.c index 755584fd0c..ebf94c8bd8 100644 --- a/sched/task/task_delete.c +++ b/sched/task/task_delete.c @@ -152,8 +152,6 @@ int task_delete(pid_t pid) /* If the task is waiting at a cancellation point, then notify of the * cancellation thereby waking the task up with an ECANCELED error. - * - * REVISIT: is locking the scheduler sufficent in SMP mode? */ if (dtcb->cpcount > 0)