Skip to content

Commit

Permalink
update project
Browse files Browse the repository at this point in the history
  • Loading branch information
mulle-nat committed Jan 12, 2024
1 parent 3eccac2 commit 93cfce8
Show file tree
Hide file tree
Showing 21 changed files with 103 additions and 49 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,4 @@ build-*
coverage*.html
*.gcda
*.gcno
cola/wilted/
6 changes: 6 additions & 0 deletions .mulle/share/env/environment-extension.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .mulle/share/env/motd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion .mulle/share/match/match.d/85-header--public-headers

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .mulle/share/match/match.d/86-header--project-only-headers

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .mulle/share/sde/version/mulle-c/c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .mulle/share/sde/version/mulle-objc/objc-demo

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .mulle/share/sde/version/mulle-sde/c-cmake

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 12 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# MulleThread
# MulleInvocationQueue

#### 🚶🚶🚶 MulleThread runs code in a separate thread
#### 🍝 MulleThread sleeps until nudged

A MulleThread is fed with NSInvocations, which it then executes in
A MulleInvocationQueue is fed with NSInvocations, which it then executes in
serial in a separate thread.


| Release Version | Release Notes
|-------------------------------------------------------|--------------
| ![Mulle kybernetiK tag](https://img.shields.io/github/tag//MulleThread.svg?branch=release) [![Build Status](https://github.com//MulleThread/workflows/CI/badge.svg?branch=release)](//github.com//MulleThread/actions)| [RELEASENOTES](RELEASENOTES.md) |
| ![Mulle kybernetiK tag](https://img.shields.io/github/tag/MulleFoundation/MulleInvocationQueue.svg?branch=release) [![Build Status](https://github.com/MulleFoundation/MulleInvocationQueue/workflows/CI/badge.svg?branch=release)](//github.com/MulleFoundation/MulleInvocationQueue/actions) | [RELEASENOTES](RELEASENOTES.md) |


## MulleThread
Expand Down Expand Up @@ -61,21 +62,21 @@ or `-cancelWhenIdle` before.

## Add

Use [mulle-sde](//github.com/mulle-sde) to add MulleThread to your project:
Use [mulle-sde](//github.com/mulle-sde) to add MulleInvocationQueue to your project:

``` sh
mulle-sde add github:MulleFoundation/MulleThread
mulle-sde add github:MulleFoundation/MulleInvocationQueue
```

## Install

### Install with mulle-sde

Use [mulle-sde](//github.com/mulle-sde) to build and install MulleThread and all dependencies:
Use [mulle-sde](//github.com/mulle-sde) to build and install MulleInvocationQueue and all dependencies:

``` sh
mulle-sde install --prefix /usr/local \
https://github.com/MulleFoundation/MulleThread/archive/latest.tar.gz
https://github.com/MulleFoundation/MulleInvocationQueue/archive/latest.tar.gz
```

### Manual Installation
Expand All @@ -87,9 +88,9 @@ Install the requirements:
| [MulleFoundationBase](https://github.com/MulleFoundation/MulleFoundationBase) | 🛸 MulleFoundationBase does something
| [mulle-objc-list](https://github.com/mulle-objc/mulle-objc-list) | 📒 Lists mulle-objc runtime information contained in executables.

Download the latest [tar](https://github.com/MulleFoundation/MulleThread/archive/refs/tags/latest.tar.gz) or [zip](https://github.com/MulleFoundation/MulleThread/archive/refs/tags/latest.zip) archive and unpack it.
Download the latest [tar](https://github.com/MulleFoundation/MulleInvocationQueue/archive/refs/tags/latest.tar.gz) or [zip](https://github.com/MulleFoundation/MulleInvocationQueue/archive/refs/tags/latest.zip) archive and unpack it.

Install **MulleThread** into `/usr/local` with [cmake](https://cmake.org):
Install **MulleInvocationQueue** into `/usr/local` with [cmake](https://cmake.org):

``` sh
cmake -B build \
Expand All @@ -102,6 +103,6 @@ cmake --install build --config Release

## Author

[Nat!](https://mulle-kybernetik.com/weblog) for Mulle kybernetiK
[Nat!](https://mulle-kybernetik.com/weblog) for Mulle kybernetiK


7 changes: 2 additions & 5 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
### 0.0.2

* Various small improvements

### 0.0.1

* Various small improvements
* Mercyful Release (split off from MulleInvocationQueue)

12 changes: 4 additions & 8 deletions clib.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name" : "MulleThread",
"version" : "0.0.1",
"description" : "MulleThread runs code in a separate thread",
"description" : "🍝 MulleThread sleeps until nudged",
"keywords" : [],
"license" : "BSD-3-Clause",
"repo" : "MulleFoundation/MulleThread",
Expand All @@ -12,16 +12,12 @@
"src/generic/MulleObjCLoader+MulleThread.m",
"src/MulleThread.h",
"src/MulleThread.m",
"src/MulleThread.h",
"src/MulleThread.m",
"src/NSInvocation+MulleReturnStatus.h",
"src/NSInvocation+MulleReturnStatus.m",
"src/NSInvocation+UTF8String.h",
"src/NSInvocation+UTF8String.m",
"src/reflect/objc-loader.inc",
"src/reflect/_MulleThread-export.h",
"src/reflect/_MulleThread-import-private.h",
"src/reflect/_MulleThread-import.h",
"src/reflect/_MulleThread-include.h"
"src/reflect/_MulleThread-include.h",
"src/reflect/_MulleThread-versioncheck.h"
],
"dependencies" : {
"MulleFoundation/MulleFoundationBase": "*",
Expand Down
11 changes: 7 additions & 4 deletions cmake/share/Environment.cmake

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 17 additions & 5 deletions cmake/share/ExecutableObjC.cmake

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions cmake/share/Headers.cmake

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cola/properties.plist
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
project =
{
description="🚶🚶🚶 MulleInvocationQueue runs code in a separate thread";
description="🍝 MulleThread sleeps until nudged";
domain="github";
name="MulleInvocationQueue";
user="MulleFoundation";
Expand Down
2 changes: 2 additions & 0 deletions src/MulleThread.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# endif
#endif

#define MULLE_THREAD_VERSION ((0UL << 20) | (0 << 8) | 1)


#import "import.h"

Expand Down
2 changes: 2 additions & 0 deletions src/MulleThread.m
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ - (void) main
#ifdef MAIN_DEBUG
fprintf( stderr, "***** 0x%tx (%p) call [super main]\n", mulle_thread_self(), self);
#endif
// this will eventually call the "user" method that was given
// when the MulleThread was created
[super main];
[pool mulleReleaseAllObjects];
}
Expand Down
4 changes: 2 additions & 2 deletions src/reflect/_MulleThread-export.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
*
* mulle-sde environment set MULLE_MATCH_TO_C_RUN DISABLE
*/
#ifndef mulle_thread_export_h__
#define mulle_thread_export_h__
#ifndef _mulle_thread__export_h__
#define _mulle_thread__export_h__


#import "MulleObjCLoader+MulleThread.h"
Expand Down
20 changes: 20 additions & 0 deletions test/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# ### > generated by mulle-sde (extensions/mulle-sde/sde/init)
# Protect some binary test files

*.stderr binary
*.stdout binary

# Tweak GitHub language statistics

# .inc is generally C

*.inc linguist-language=C

# remove boring files
.mulle/** linguist-generated
.idea/** linguist-generated
.vscode/** linguist-generated
cmake/** linguist-generated

# ### < generated by mulle-sde (extensions/mulle-sde/sde/init)

12 changes: 6 additions & 6 deletions test/.mulle/etc/env/environment-host-ci-prerelease.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions test/.mulle/share/sourcetree/config

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 93cfce8

Please sign in to comment.